--- /dev/null
+see also
+http://serverfault.com/questions/388865/building-python3-on-a-redhat-5-machine
+
+--- Python-3.2.3/Modules/_posixsubprocess.c~ 2012-04-11 09:54:07.000000000 +0300
++++ Python-3.2.3/Modules/_posixsubprocess.c 2012-07-26 10:58:29.616131665 +0300
+@@ -37,6 +37,9 @@
+
+ #define POSIX_CALL(call) if ((call) == -1) goto error
+
++#ifndef O_CLOEXEC
++#define O_CLOEXEC 02000000 /* set close_on_exec */
++#endif
+
+ /* Maximum file descriptor, initialized on module load. */
+ static long max_fd;
Patch3: %{name}-noarch_to_datadir.patch
Patch4: %{name}-no_cmdline_tests.patch
Patch5: %{name}-makefile-location.patch
+Patch6: libc-cloexec.patch
URL: http://www.python.org/
BuildRequires: autoconf >= 2.65
BuildRequires: bluez-libs-devel
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%build
if ! grep -q "tmpfs" /proc/self/mounts; then