Skip to content

Commit 2298fad

Browse files
bpo-31893: Fix errors in b9052a0. (#4196)
* Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X.
1 parent afd055a commit 2298fad

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
@@ -1840,12 +1840,12 @@ static PyTypeObject kqueue_queue_Type;
18401840
# define FFLAGS_FMT_UNIT "I"
18411841
#endif
18421842

1843-
#ifdef __FreeBSD__
1844-
# define DATA_TYPE T_INTPTRT
1845-
# define DATA_FMT_UNIT INTPTR_FMT_UNIT
1846-
#else
1843+
#if defined(__NetBSD__) || defined(__OpenBSD__)
18471844
# define DATA_TYPE T_INT64
18481845
# define DATA_FMT_UNIT INT64_FMT_UNIT
1846+
#else
1847+
# define DATA_TYPE T_INTPTRT
1848+
# define DATA_FMT_UNIT INTPTRT_FMT_UNIT
18491849
#endif
18501850

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

0 commit comments

Comments
 (0)