From 505c4c2858aae64e0e3579d710df935d2dfc10f7 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Fri, 9 May 2003 10:45:20 +0000 Subject: [PATCH] Simple fix for [ 733781 ] fcntl fails to build on old RH Linux --- Modules/fcntlmodule.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.50.1