Commit e7531e54 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by Serhiy Storchaka

bpo-31893: Fix errors in b9052a0f. (GH-4196) (#4202)

* Fix a compilation error on FreeBSD.
* Fix the data attribute size on Mac OS X.
(cherry picked from commit 2298fad5)
parent 52ba7b44
......@@ -1285,12 +1285,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment