Skip to content

Commit e7531e5

Browse files
miss-islingtonserhiy-storchaka
authored andcommitted
bpo-31893: Fix errors in b9052a0. (GH-4196) (#4202)
* Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. (cherry picked from commit 2298fad)
1 parent 52ba7b4 commit e7531e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/selectmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,12 +1285,12 @@ static PyTypeObject kqueue_queue_Type;
12851285
# define FFLAGS_FMT_UNIT "I"
12861286
#endif
12871287

1288-
#ifdef __FreeBSD__
1289-
# define DATA_TYPE T_INTPTRT
1290-
# define DATA_FMT_UNIT INTPTR_FMT_UNIT
1291-
#else
1288+
#if defined(__NetBSD__) || defined(__OpenBSD__)
12921289
# define DATA_TYPE T_INT64
12931290
# define DATA_FMT_UNIT INT64_FMT_UNIT
1291+
#else
1292+
# define DATA_TYPE T_INTPTRT
1293+
# define DATA_FMT_UNIT INTPTRT_FMT_UNIT
12941294
#endif
12951295

12961296
/* Unfortunately, we can't store python objects in udata, because

0 commit comments

Comments
 (0)