[Python-checkins] cpython (3.4): include fcntl.h on all *nix platforms (closes #24217)

benjamin.peterson python-checkins at python.org
Sun Aug 2 21:17:46 CEST 2015


https://hg.python.org/cpython/rev/1838f37a8d9e
changeset: 97209:1838f37a8d9e
branch: 3.4
parent: 97206:da29a94367b2
user: Benjamin Peterson <benjamin at python.org>
date: Sun Aug 02 12:15:30 2015 -0700
summary:
 include fcntl.h on all *nix platforms (closes #24217)
Patch by Jeffrey Armstrong.
files:
 Modules/mmapmodule.c | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -24,9 +24,9 @@
 
 #ifndef MS_WINDOWS
 #define UNIX
-# ifdef __APPLE__
+# ifdef HAVE_FCNTL_H
 # include <fcntl.h>
-# endif
+# endif /* HAVE_FCNTL_H */
 #endif
 
 #ifdef MS_WINDOWS
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /