]> granicus.if.org Git - python/commitdiff
Simple fix for
authorMichael W. Hudson <mwh@python.net>
Fri, 9 May 2003 10:45:20 +0000 (10:45 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 9 May 2003 10:45:20 +0000 (10:45 +0000)
[ 733781 ] fcntl fails to build on old RH Linux

Modules/fcntlmodule.c

index 969505755c8c641ff3eddc30860baf7f4057f489..bb8548d2517f3b9ef7c8a45f67a644fafe0821f7 100644 (file)
@@ -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);