[Python-checkins] cpython (2.7): 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/2e635a0e0207
changeset: 97212:2e635a0e0207
branch: 2.7
parent: 97203:68115dd0c7f5
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
@@ -23,9 +23,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