summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-10-31 11:16:11 -0700
committerSerhiy Storchaka <storchaka@gmail.com>2017-10-31 20:16:11 +0200
commite7531e54bf195b8d3ed35b4138901c82f7ed794c (patch)
tree62f9eccdef4d7f5c580927fab5ca010e6e14190b /Modules
parent52ba7b447f41dad2754ddbc50ed97413b557bbe1 (diff)
downloadcpython-git-e7531e54bf195b8d3ed35b4138901c82f7ed794c.tar.gz
bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) (#4202)
* Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. (cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/selectmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 1260171388..6cd32cd8a9 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1285,12 +1285,12 @@ static PyTypeObject kqueue_queue_Type;
# define FFLAGS_FMT_UNIT "I"
#endif
-#ifdef __FreeBSD__
-# define DATA_TYPE T_INTPTRT
-# define DATA_FMT_UNIT INTPTR_FMT_UNIT
-#else
+#if defined(__NetBSD__) || defined(__OpenBSD__)
# define DATA_TYPE T_INT64
# define DATA_FMT_UNIT INT64_FMT_UNIT
+#else
+# define DATA_TYPE T_INTPTRT
+# define DATA_FMT_UNIT INTPTRT_FMT_UNIT
#endif
/* Unfortunately, we can't store python objects in udata, because