patch-pyconfig_h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. --- Python-2.7.1.orig/pyconfig.h 2010-12-27 21:24:34.000000000 +0100
  2. +++ Python-2.7.1/pyconfig.h 2010-12-27 21:07:05.000000000 +0100
  3. @@ -32,10 +32,10 @@
  4. /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the
  5. least significant byte first */
  6. -#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
  7. +/* #undef DOUBLE_IS_LITTLE_ENDIAN_IEEE754 */
  8. /* Define if --enable-ipv6 is specified */
  9. -#define ENABLE_IPV6 1
  10. +/* #undef ENABLE_IPV6 */
  11. /* Define if flock needs to be linked with bsd library. */
  12. /* #undef FLOCK_NEEDS_LIBBSD */
  13. @@ -63,7 +63,7 @@
  14. #define HAVE_ASINH 1
  15. /* Define to 1 if you have the <asm/types.h> header file. */
  16. -/* #undef HAVE_ASM_TYPES_H */
  17. +#define HAVE_ASM_TYPES_H 1
  18. /* Define to 1 if you have the `atanh' function. */
  19. #define HAVE_ATANH 1
  20. @@ -75,7 +75,7 @@
  21. /* #undef HAVE_BIND_TEXTDOMAIN_CODESET */
  22. /* Define to 1 if you have the <bluetooth/bluetooth.h> header file. */
  23. -/* #undef HAVE_BLUETOOTH_BLUETOOTH_H */
  24. +#define HAVE_BLUETOOTH_BLUETOOTH_H 1
  25. /* Define to 1 if you have the <bluetooth.h> header file. */
  26. /* #undef HAVE_BLUETOOTH_H */
  27. @@ -126,7 +126,7 @@
  28. #define HAVE_CTERMID 1
  29. /* Define if you have the 'ctermid_r' function. */
  30. -#define HAVE_CTERMID_R 1
  31. +/* #undef HAVE_CTERMID_R */
  32. /* Define to 1 if you have the <curses.h> header file. */
  33. #define HAVE_CURSES_H 1
  34. @@ -185,7 +185,7 @@
  35. #define HAVE_DYNAMIC_LOADING 1
  36. /* Define if you have the 'epoll' functions. */
  37. -/* #undef HAVE_EPOLL */
  38. +#define HAVE_EPOLL 1
  39. /* Define to 1 if you have the `erf' function. */
  40. #define HAVE_ERF 1
  41. @@ -215,10 +215,10 @@
  42. #define HAVE_FCNTL_H 1
  43. /* Define if you have the 'fdatasync' function. */
  44. -/* #undef HAVE_FDATASYNC */
  45. +#define HAVE_FDATASYNC 1
  46. /* Define to 1 if you have the `finite' function. */
  47. -#define HAVE_FINITE 1
  48. +/* #undef HAVE_FINITE */
  49. /* Define to 1 if you have the `flock' function. */
  50. #define HAVE_FLOCK 1
  51. @@ -227,7 +227,7 @@
  52. #define HAVE_FORK 1
  53. /* Define to 1 if you have the `forkpty' function. */
  54. -#define HAVE_FORKPTY 1
  55. +/* #undef HAVE_FORKPTY */
  56. /* Define to 1 if you have the `fpathconf' function. */
  57. #define HAVE_FPATHCONF 1
  58. @@ -267,7 +267,7 @@
  59. #define HAVE_GCC_ASM_FOR_X87 1
  60. /* Define if you have the getaddrinfo function. */
  61. -#define HAVE_GETADDRINFO 1
  62. +/* #undef HAVE_GETADDRINFO */
  63. /* Define to 1 if you have the `getcwd' function. */
  64. #define HAVE_GETCWD 1
  65. @@ -279,10 +279,10 @@
  66. #define HAVE_GETGROUPS 1
  67. /* Define to 1 if you have the `gethostbyname' function. */
  68. -#define HAVE_GETHOSTBYNAME 1
  69. +/* #undef HAVE_GETHOSTBYNAME */
  70. /* Define this if you have some version of gethostbyname_r() */
  71. -/* #undef HAVE_GETHOSTBYNAME_R */
  72. +#define HAVE_GETHOSTBYNAME_R 1
  73. /* Define this if you have the 3-arg version of gethostbyname_r(). */
  74. /* #undef HAVE_GETHOSTBYNAME_R_3_ARG */
  75. @@ -291,13 +291,13 @@
  76. /* #undef HAVE_GETHOSTBYNAME_R_5_ARG */
  77. /* Define this if you have the 6-arg version of gethostbyname_r(). */
  78. -/* #undef HAVE_GETHOSTBYNAME_R_6_ARG */
  79. +#define HAVE_GETHOSTBYNAME_R_6_ARG 1
  80. /* Define to 1 if you have the `getitimer' function. */
  81. #define HAVE_GETITIMER 1
  82. /* Define to 1 if you have the `getloadavg' function. */
  83. -#define HAVE_GETLOADAVG 1
  84. +/* #undef HAVE_GETLOADAVG */
  85. /* Define to 1 if you have the `getlogin' function. */
  86. #define HAVE_GETLOGIN 1
  87. @@ -327,25 +327,25 @@
  88. #define HAVE_GETPWENT 1
  89. /* Define to 1 if you have the `getresgid' function. */
  90. -/* #undef HAVE_GETRESGID */
  91. +#define HAVE_GETRESGID 1
  92. /* Define to 1 if you have the `getresuid' function. */
  93. -/* #undef HAVE_GETRESUID */
  94. +#define HAVE_GETRESUID 1
  95. /* Define to 1 if you have the `getsid' function. */
  96. #define HAVE_GETSID 1
  97. /* Define to 1 if you have the `getspent' function. */
  98. -/* #undef HAVE_GETSPENT */
  99. +#define HAVE_GETSPENT 1
  100. /* Define to 1 if you have the `getspnam' function. */
  101. -/* #undef HAVE_GETSPNAM */
  102. +#define HAVE_GETSPNAM 1
  103. /* Define to 1 if you have the `gettimeofday' function. */
  104. #define HAVE_GETTIMEOFDAY 1
  105. /* Define to 1 if you have the `getwd' function. */
  106. -#define HAVE_GETWD 1
  107. +/* #undef HAVE_GETWD */
  108. /* Define to 1 if you have the <grp.h> header file. */
  109. #define HAVE_GRP_H 1
  110. @@ -381,7 +381,7 @@
  111. #define HAVE_KILLPG 1
  112. /* Define if you have the 'kqueue' functions. */
  113. -#define HAVE_KQUEUE 1
  114. +/* #undef HAVE_KQUEUE */
  115. /* Define to 1 if you have the <langinfo.h> header file. */
  116. #define HAVE_LANGINFO_H 1
  117. @@ -390,13 +390,13 @@
  118. and long long is available and at least as big as an off_t. You may need to
  119. add some flags for configuration and compilation to enable this mode. (For
  120. Solaris and Linux, the necessary defines are already defined.) */
  121. -/* #undef HAVE_LARGEFILE_SUPPORT */
  122. +#define HAVE_LARGEFILE_SUPPORT 1
  123. /* Define to 1 if you have the `lchflags' function. */
  124. /* #undef HAVE_LCHFLAGS */
  125. /* Define to 1 if you have the `lchmod' function. */
  126. -#define HAVE_LCHMOD 1
  127. +/* #undef HAVE_LCHMOD */
  128. /* Define to 1 if you have the `lchown' function. */
  129. #define HAVE_LCHOWN 1
  130. @@ -414,7 +414,7 @@
  131. /* #undef HAVE_LIBIEEE */
  132. /* Define to 1 if you have the <libintl.h> header file. */
  133. -/* #undef HAVE_LIBINTL_H */
  134. +#define HAVE_LIBINTL_H 1
  135. /* Define if you have the readline library (-lreadline). */
  136. #define HAVE_LIBREADLINE 1
  137. @@ -429,10 +429,10 @@
  138. #define HAVE_LINK 1
  139. /* Define to 1 if you have the <linux/netlink.h> header file. */
  140. -/* #undef HAVE_LINUX_NETLINK_H */
  141. +#define HAVE_LINUX_NETLINK_H 1
  142. /* Define to 1 if you have the <linux/tipc.h> header file. */
  143. -/* #undef HAVE_LINUX_TIPC_H */
  144. +#define HAVE_LINUX_TIPC_H 1
  145. /* Define to 1 if you have the `log1p' function. */
  146. #define HAVE_LOG1P 1
  147. @@ -465,7 +465,7 @@
  148. #define HAVE_MKTIME 1
  149. /* Define to 1 if you have the `mremap' function. */
  150. -/* #undef HAVE_MREMAP */
  151. +#define HAVE_MREMAP 1
  152. /* Define to 1 if you have the <ncurses.h> header file. */
  153. #define HAVE_NCURSES_H 1
  154. @@ -474,16 +474,16 @@
  155. /* #undef HAVE_NDIR_H */
  156. /* Define to 1 if you have the <netpacket/packet.h> header file. */
  157. -/* #undef HAVE_NETPACKET_PACKET_H */
  158. +#define HAVE_NETPACKET_PACKET_H 1
  159. /* Define to 1 if you have the `nice' function. */
  160. #define HAVE_NICE 1
  161. /* Define to 1 if you have the `openpty' function. */
  162. -#define HAVE_OPENPTY 1
  163. +/* #undef HAVE_OPENPTY */
  164. /* Define if compiling using MacOS X 10.5 SDK or later. */
  165. -#define HAVE_OSX105_SDK 1
  166. +/* #undef HAVE_OSX105_SDK */
  167. /* Define to 1 if you have the `pathconf' function. */
  168. #define HAVE_PATHCONF 1
  169. @@ -519,10 +519,10 @@
  170. /* #undef HAVE_PTHREAD_INIT */
  171. /* Define to 1 if you have the `pthread_sigmask' function. */
  172. -/* #undef HAVE_PTHREAD_SIGMASK */
  173. +#define HAVE_PTHREAD_SIGMASK 1
  174. /* Define to 1 if you have the <pty.h> header file. */
  175. -/* #undef HAVE_PTY_H */
  176. +#define HAVE_PTY_H 1
  177. /* Define to 1 if you have the `putenv' function. */
  178. #define HAVE_PUTENV 1
  179. @@ -537,7 +537,7 @@
  180. #define HAVE_RL_CALLBACK 1
  181. /* Define if you can turn off readline's signal handling. */
  182. -/* #undef HAVE_RL_CATCH_SIGNAL */
  183. +#define HAVE_RL_CATCH_SIGNAL 1
  184. /* Define if you have readline 2.2 */
  185. #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
  186. @@ -549,7 +549,7 @@
  187. #define HAVE_RL_COMPLETION_MATCHES 1
  188. /* Define if you have rl_completion_suppress_append */
  189. -/* #undef HAVE_RL_COMPLETION_SUPPRESS_APPEND */
  190. +#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
  191. /* Define if you have readline 4.0 */
  192. #define HAVE_RL_PRE_INPUT_HOOK 1
  193. @@ -567,7 +567,7 @@
  194. #define HAVE_SEM_OPEN 1
  195. /* Define to 1 if you have the `sem_timedwait' function. */
  196. -/* #undef HAVE_SEM_TIMEDWAIT */
  197. +#define HAVE_SEM_TIMEDWAIT 1
  198. /* Define to 1 if you have the `sem_unlink' function. */
  199. #define HAVE_SEM_UNLINK 1
  200. @@ -600,10 +600,10 @@
  201. #define HAVE_SETREGID 1
  202. /* Define to 1 if you have the `setresgid' function. */
  203. -/* #undef HAVE_SETRESGID */
  204. +#define HAVE_SETRESGID 1
  205. /* Define to 1 if you have the `setresuid' function. */
  206. -/* #undef HAVE_SETRESUID */
  207. +#define HAVE_SETRESUID 1
  208. /* Define to 1 if you have the `setreuid' function. */
  209. #define HAVE_SETREUID 1
  210. @@ -618,7 +618,7 @@
  211. #define HAVE_SETVBUF 1
  212. /* Define to 1 if you have the <shadow.h> header file. */
  213. -/* #undef HAVE_SHADOW_H */
  214. +#define HAVE_SHADOW_H 1
  215. /* Define to 1 if you have the `sigaction' function. */
  216. #define HAVE_SIGACTION 1
  217. @@ -630,13 +630,13 @@
  218. #define HAVE_SIGNAL_H 1
  219. /* Define to 1 if you have the `sigrelse' function. */
  220. -#define HAVE_SIGRELSE 1
  221. +/* #undef HAVE_SIGRELSE */
  222. /* Define to 1 if you have the `snprintf' function. */
  223. #define HAVE_SNPRINTF 1
  224. /* Define if sockaddr has sa_len member */
  225. -#define HAVE_SOCKADDR_SA_LEN 1
  226. +/* #undef HAVE_SOCKADDR_SA_LEN */
  227. /* struct sockaddr_storage (sys/socket.h) */
  228. #define HAVE_SOCKADDR_STORAGE 1
  229. @@ -645,7 +645,7 @@
  230. #define HAVE_SOCKETPAIR 1
  231. /* Define to 1 if you have the <spawn.h> header file. */
  232. -#define HAVE_SPAWN_H 1
  233. +/* #undef HAVE_SPAWN_H */
  234. /* Define if your compiler provides ssize_t */
  235. #define HAVE_SSIZE_T 1
  236. @@ -654,10 +654,10 @@
  237. #define HAVE_STATVFS 1
  238. /* Define if you have struct stat.st_mtim.tv_nsec */
  239. -/* #undef HAVE_STAT_TV_NSEC */
  240. +#define HAVE_STAT_TV_NSEC 1
  241. /* Define if you have struct stat.st_mtimensec */
  242. -#define HAVE_STAT_TV_NSEC2 1
  243. +/* #undef HAVE_STAT_TV_NSEC2 */
  244. /* Define if your compiler supports variable length function prototypes (e.g.
  245. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */
  246. @@ -694,10 +694,10 @@
  247. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  248. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  249. -#define HAVE_STRUCT_STAT_ST_FLAGS 1
  250. +/* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  251. /* Define to 1 if `st_gen' is a member of `struct stat'. */
  252. -#define HAVE_STRUCT_STAT_ST_GEN 1
  253. +/* #undef HAVE_STRUCT_STAT_ST_GEN */
  254. /* Define to 1 if `st_rdev' is a member of `struct stat'. */
  255. #define HAVE_STRUCT_STAT_ST_RDEV 1
  256. @@ -729,10 +729,10 @@
  257. /* #undef HAVE_SYS_DIR_H */
  258. /* Define to 1 if you have the <sys/epoll.h> header file. */
  259. -/* #undef HAVE_SYS_EPOLL_H */
  260. +#define HAVE_SYS_EPOLL_H 1
  261. /* Define to 1 if you have the <sys/event.h> header file. */
  262. -#define HAVE_SYS_EVENT_H 1
  263. +/* #undef HAVE_SYS_EVENT_H */
  264. /* Define to 1 if you have the <sys/file.h> header file. */
  265. #define HAVE_SYS_FILE_H 1
  266. @@ -741,7 +741,7 @@
  267. /* #undef HAVE_SYS_LOADAVG_H */
  268. /* Define to 1 if you have the <sys/lock.h> header file. */
  269. -#define HAVE_SYS_LOCK_H 1
  270. +/* #undef HAVE_SYS_LOCK_H */
  271. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  272. /* #undef HAVE_SYS_MKDEV_H */
  273. @@ -829,7 +829,7 @@
  274. #define HAVE_TMPNAM 1
  275. /* Define to 1 if you have the `tmpnam_r' function. */
  276. -/* #undef HAVE_TMPNAM_R */
  277. +#define HAVE_TMPNAM_R 1
  278. /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
  279. `HAVE_STRUCT_TM_TM_ZONE' instead. */
  280. @@ -863,7 +863,7 @@
  281. /* #undef HAVE_USABLE_WCHAR_T */
  282. /* Define to 1 if you have the <util.h> header file. */
  283. -#define HAVE_UTIL_H 1
  284. +/* #undef HAVE_UTIL_H */
  285. /* Define to 1 if you have the `utimes' function. */
  286. #define HAVE_UTIMES 1
  287. @@ -888,7 +888,7 @@
  288. /* Define if tzset() actually switches the local timezone in a meaningful way.
  289. */
  290. -#define HAVE_WORKING_TZSET 1
  291. +/* #undef HAVE_WORKING_TZSET */
  292. /* Define if the zlib library has inflateCopy */
  293. #define HAVE_ZLIB_COPY 1
  294. @@ -953,7 +953,7 @@
  295. /* #undef Py_DEBUG */
  296. /* Defined if Python is built as a shared library. */
  297. -/* #undef Py_ENABLE_SHARED */
  298. +#define Py_ENABLE_SHARED 1
  299. /* Define as the size of the unicode type. */
  300. #define Py_UNICODE_SIZE 2
  301. @@ -980,16 +980,16 @@
  302. #define SIZEOF_FLOAT 4
  303. /* The size of `fpos_t', as computed by sizeof. */
  304. -#define SIZEOF_FPOS_T 8
  305. +#define SIZEOF_FPOS_T 20
  306. /* The size of `int', as computed by sizeof. */
  307. #define SIZEOF_INT 4
  308. /* The size of `long', as computed by sizeof. */
  309. -#define SIZEOF_LONG 8
  310. +#define SIZEOF_LONG 4
  311. /* The size of `long double', as computed by sizeof. */
  312. -#define SIZEOF_LONG_DOUBLE 16
  313. +#define SIZEOF_LONG_DOUBLE 12
  314. /* The size of `long long', as computed by sizeof. */
  315. #define SIZEOF_LONG_LONG 8
  316. @@ -1001,22 +1001,22 @@
  317. #define SIZEOF_PID_T 4
  318. /* The size of `pthread_t', as computed by sizeof. */
  319. -#define SIZEOF_PTHREAD_T 8
  320. +#define SIZEOF_PTHREAD_T 4
  321. /* The size of `short', as computed by sizeof. */
  322. #define SIZEOF_SHORT 2
  323. /* The size of `size_t', as computed by sizeof. */
  324. -#define SIZEOF_SIZE_T 8
  325. +#define SIZEOF_SIZE_T 4
  326. /* The size of `time_t', as computed by sizeof. */
  327. -#define SIZEOF_TIME_T 8
  328. +#define SIZEOF_TIME_T 4
  329. /* The size of `uintptr_t', as computed by sizeof. */
  330. -#define SIZEOF_UINTPTR_T 8
  331. +#define SIZEOF_UINTPTR_T 4
  332. /* The size of `void *', as computed by sizeof. */
  333. -#define SIZEOF_VOID_P 8
  334. +#define SIZEOF_VOID_P 4
  335. /* The size of `wchar_t', as computed by sizeof. */
  336. #define SIZEOF_WCHAR_T 4
  337. @@ -1032,7 +1032,7 @@
  338. #define SYS_SELECT_WITH_SYS_TIME 1
  339. /* Define if tanh(-0.) is -0., or if platform doesn't have signed zeros */
  340. -#define TANH_PRESERVES_ZERO_SIGN 1
  341. +/* #undef TANH_PRESERVES_ZERO_SIGN */
  342. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  343. #define TIME_WITH_SYS_TIME 1
  344. @@ -1063,10 +1063,10 @@
  345. /* Define if you want to use MacPython modules on MacOSX in unix-Python. */
  346. -#define USE_TOOLBOX_OBJECT_GLUE 1
  347. +/* #undef USE_TOOLBOX_OBJECT_GLUE */
  348. /* Define if a va_list is an array of some kind */
  349. -#define VA_LIST_IS_ARRAY 1
  350. +/* #undef VA_LIST_IS_ARRAY */
  351. /* Define if you want SIGFPE handled (see Include/pyfpe.h). */
  352. /* #undef WANT_SIGFPE_HANDLER */
  353. @@ -1076,7 +1076,7 @@
  354. /* #undef WANT_WCTYPE_FUNCTIONS */
  355. /* Define if WINDOW in curses.h offers a field _flags. */
  356. -/* #undef WINDOW_HAS_FLAGS */
  357. +#define WINDOW_HAS_FLAGS 1
  358. /* Define if you want documentation strings in extension modules */
  359. #define WITH_DOC_STRINGS 1
  360. @@ -1084,10 +1084,10 @@
  361. /* Define if you want to use the new-style (Openstep, Rhapsody, MacOS) dynamic
  362. linker (dyld) instead of the old-style (NextStep) dynamic linker (rld).
  363. Dyld is necessary to support frameworks. */
  364. -#define WITH_DYLD 1
  365. +/* #undef WITH_DYLD */
  366. /* Define to 1 if libintl is needed for locale functions. */
  367. -/* #undef WITH_LIBINTL */
  368. +#define WITH_LIBINTL 1
  369. /* Define if you want to produce an OpenStep/Rhapsody framework (shared
  370. library plus accessory files). */
  371. @@ -1097,7 +1097,7 @@
  372. #define WITH_PYMALLOC 1
  373. /* Define if you want to compile in rudimentary thread support */
  374. -/* #undef WITH_THREAD */
  375. +#define WITH_THREAD 1
  376. /* Define to profile with the Pentium timestamp counter */
  377. /* #undef WITH_TSC */
  378. @@ -1152,7 +1152,7 @@
  379. /* #undef _POSIX_1_SOURCE */
  380. /* Define to activate features from IEEE Stds 1003.1-2001 */
  381. -/* #undef _POSIX_C_SOURCE */
  382. +#define _POSIX_C_SOURCE 200112L
  383. /* Define to 1 if you need to in order for `stat' and other things to work. */
  384. /* #undef _POSIX_SOURCE */
  385. @@ -1161,7 +1161,7 @@
  386. /* #undef _POSIX_THREADS */
  387. /* Define to force use of thread-safe errno, h_errno, and other functions */
  388. -/* #undef _REENTRANT */
  389. +#define _REENTRANT 1
  390. /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
  391. <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
  392. @@ -1174,10 +1174,10 @@
  393. /* #undef _UINT64_T */
  394. /* Define to the level of X/Open that your system supports */
  395. -/* #undef _XOPEN_SOURCE */
  396. +#define _XOPEN_SOURCE 600
  397. /* Define to activate Unix95-and-earlier features */
  398. -/* #undef _XOPEN_SOURCE_EXTENDED */
  399. +#define _XOPEN_SOURCE_EXTENDED 1
  400. /* Define on FreeBSD to activate all library features */
  401. #define __BSD_VISIBLE 1