From: Michael W. Hudson Date: Fri, 9 May 2003 10:45:20 +0000 (+0000) Subject: Simple fix for X-Git-Tag: v2.3c1~787 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=505c4c2858aae64e0e3579d710df935d2dfc10f7;p=python Simple fix for [ 733781 ] fcntl fails to build on old RH Linux --- diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 969505755c..bb8548d251 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);