summaryrefslogtreecommitdiffstats
path: root/Modules/fcntlmodule.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2003-05-09 10:45:20 (GMT)
committerMichael W. Hudson <mwh@python.net>2003-05-09 10:45:20 (GMT)
commit505c4c2858aae64e0e3579d710df935d2dfc10f7 (patch)
tree105e51362048b8c1c9b2b4644b97988e149df6de /Modules/fcntlmodule.c
parentee0325ac9af8298f98a322483e7bd2854507595f (diff)
downloadcpython-505c4c2858aae64e0e3579d710df935d2dfc10f7.zip
cpython-505c4c2858aae64e0e3579d710df935d2dfc10f7.tar.gz
cpython-505c4c2858aae64e0e3579d710df935d2dfc10f7.tar.bz2
Simple fix for
[ 733781 ] fcntl fails to build on old RH Linux
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r--Modules/fcntlmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index 9695057..bb8548d 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -556,7 +556,10 @@ all_ins(PyObject* d)
INS(I_FDINSERT);
INS(I_STR);
INS(I_SWROPT);
+#ifdef I_GWROPT
+ /* despite the comment above, old-ish glibcs miss a couple... */
INS(I_GWROPT);
+#endif
INS(I_SENDFD);
INS(I_RECVFD);
INS(I_LIST);
@@ -565,7 +568,9 @@ all_ins(PyObject* d)
INS(I_GETBAND);
INS(I_CANPUT);
INS(I_SETCLTIME);
+#ifdef I_GETCLTIME
INS(I_GETCLTIME);
+#endif
INS(I_LINK);
INS(I_UNLINK);
INS(I_PLINK);