]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) (#4201)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 31 Oct 2017 18:16:07 +0000 (11:16 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 31 Oct 2017 18:16:07 +0000 (20:16 +0200)
* Fix a compilation error on FreeBSD.
* Fix the data attribute size on Mac OS X.
(cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)

Modules/selectmodule.c

index 3b9c4d65c1d2892a0c31ceb984be18a7c62302f0..7e81f1904c0a6f7e6a35d88d0d357519a86ba93d 100644 (file)
@@ -1841,12 +1841,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