From 2716d531a1e2553bc6df43852357053370ff8bb0 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 8 Jan 2013 00:52:40 +0100 Subject: fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+. --- Modules/fcntlmodule.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Modules/fcntlmodule.c') diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 550902690c..bc2c181dce 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -461,6 +461,9 @@ all_ins(PyObject* d) #ifdef F_DUPFD if (ins(d, "F_DUPFD", (long)F_DUPFD)) return -1; #endif +#ifdef F_DUPFD_CLOEXEC + if (ins(d, "F_DUPFD_CLOEXEC", (long)F_DUPFD_CLOEXEC)) return -1; +#endif #ifdef F_GETFD if (ins(d, "F_GETFD", (long)F_GETFD)) return -1; #endif -- cgit v1.2.1