diff options
Diffstat (limited to 'lang/python27/patches/patch-Modules_posixmodule.c')
-rw-r--r-- | lang/python27/patches/patch-Modules_posixmodule.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/python27/patches/patch-Modules_posixmodule.c b/lang/python27/patches/patch-Modules_posixmodule.c new file mode 100644 index 00000000000..9912a4f0351 --- /dev/null +++ b/lang/python27/patches/patch-Modules_posixmodule.c @@ -0,0 +1,15 @@ +$NetBSD: patch-Modules_posixmodule.c,v 1.1 2014/07/17 15:26:49 ryoon Exp $ + +--- Modules/posixmodule.c.orig 2014-06-30 02:05:43.000000000 +0000 ++++ Modules/posixmodule.c +@@ -317,6 +317,10 @@ extern int lstat(const char *, struct st + #define PARSE_PID "i" + #define PyLong_FromPid PyInt_FromLong + #define PyLong_AsPid PyInt_AsLong ++#elif SIZEOF_PID_T == SIZEOF_SHORT ++#define PARSE_PID "i" ++#define PyLong_FromPid PyInt_FromLong ++#define PyLong_AsPid PyInt_AsLong + #elif SIZEOF_PID_T == SIZEOF_LONG + #define PARSE_PID "l" + #define PyLong_FromPid PyInt_FromLong |