Skip to content

Commit

Permalink
bpo-31893: Fix errors in b9052a0. (#4196)
Browse files Browse the repository at this point in the history
* Fix a compilation error on FreeBSD.
* Fix the data attribute size on Mac OS X.
  • Loading branch information
serhiy-storchaka authored Oct 31, 2017
1 parent afd055a commit 2298fad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/selectmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2298fad

Please sign in to comment.