Annotation of pkgsrc/lang/python27/patches/patch-Modules_posixmodule.c, revision 1.2
1.2 ! rodent 1: $NetBSD: patch-Modules_posixmodule.c,v 1.1 2014/07/17 15:26:49 ryoon Exp $
1.1 ryoon 2:
1.2 ! rodent 3: --- Modules/posixmodule.c.orig 2014-12-10 15:59:55.000000000 +0000
1.1 ryoon 4: +++ Modules/posixmodule.c
5: @@ -317,6 +317,10 @@ extern int lstat(const char *, struct st
6: #define PARSE_PID "i"
7: #define PyLong_FromPid PyInt_FromLong
8: #define PyLong_AsPid PyInt_AsLong
9: +#elif SIZEOF_PID_T == SIZEOF_SHORT
10: +#define PARSE_PID "i"
11: +#define PyLong_FromPid PyInt_FromLong
12: +#define PyLong_AsPid PyInt_AsLong
13: #elif SIZEOF_PID_T == SIZEOF_LONG
14: #define PARSE_PID "l"
15: #define PyLong_FromPid PyInt_FromLong
CVSweb <webmaster@jp.NetBSD.org>