summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-10-31 16:18:21 (GMT)
committerGitHub <noreply@github.com>2017-10-31 16:18:21 (GMT)
commit2298fad5ff907dd48ea0fb5c71fa22334ef28c6b (patch)
tree0145a647ab0d1ccff9ef47b82543e7bad9c8c943
parentafd055a59fe0291881fc2459215ce106e424da51 (diff)
downloadcpython-2298fad5ff907dd48ea0fb5c71fa22334ef28c6b.zip
cpython-2298fad5ff907dd48ea0fb5c71fa22334ef28c6b.tar.gz
cpython-2298fad5ff907dd48ea0fb5c71fa22334ef28c6b.tar.bz2
bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (#4196)
* Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X.
-rw-r--r--Modules/selectmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index af265d8..1cde6e8 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1840,12 +1840,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