summaryrefslogtreecommitdiffstats
path: root/Lib/plat-linux3/regen
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-19 22:26:23 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-19 22:26:23 (GMT)
commitc57ed91e0c1e5476076268e62a85b613ef88d21b (patch)
tree72bd3f50303d1da2a3e453086526377753611171 /Lib/plat-linux3/regen
parent4634676cec29def3c70cf84ba00e6d7586bbaab7 (diff)
downloadcpython-c57ed91e0c1e5476076268e62a85b613ef88d21b.zip
cpython-c57ed91e0c1e5476076268e62a85b613ef88d21b.tar.gz
cpython-c57ed91e0c1e5476076268e62a85b613ef88d21b.tar.bz2
Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
so that "import DLFCN" and other similar imports work on Linux 3.0.
Diffstat (limited to 'Lib/plat-linux3/regen')
-rwxr-xr-xLib/plat-linux3/regen8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/plat-linux3/regen b/Lib/plat-linux3/regen
new file mode 100755
index 0000000..c76950e
--- /dev/null
+++ b/Lib/plat-linux3/regen
@@ -0,0 +1,8 @@
+#! /bin/sh
+case `uname` in
+Linux*) ;;
+*) echo Probably not on a Linux system 1>&2
+ exit 1;;
+esac
+set -v
+h2py -i '(u_long)' /usr/include/sys/types.h /usr/include/netinet/in.h /usr/include/dlfcn.h