components/python/python27/patches/18-osconf-long.patch
author John Beck <John.Beck@Oracle.COM>
Wed, 21 Jan 2015 17:55:00 -0800
changeset 3671 91f76aae1155
parent 1954 32663e59626d
child 4698 4e27e549b58d
permissions -rw-r--r--
20381830 ctypes module unable to obtain default library path

# http://bugs.python.org/issue17964 was fixed in 3.4 but not back-ported so we
# need this patch for 2.7 .

--- Python-2.7.7/Modules/posixmodule.c.~2~	2014-06-02 11:01:10.919544709 -0700
+++ Python-2.7.7/Modules/posixmodule.c	2014-06-02 11:01:11.009553336 -0700
@@ -8499,7 +8499,7 @@
     int name;
 
     if (PyArg_ParseTuple(args, "O&:sysconf", conv_sysconf_confname, &name)) {
-        int value;
+        long value;
 
         errno = 0;
         value = sysconf(name);