diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-07 21:45:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-07 21:45:10 (GMT) |
commit | 840ef8f84b4b629b319f1cb960495be0fb8df4b6 (patch) | |
tree | 029fbb0cf2627df99195a370ac4f9ba8e1678883 /Modules | |
parent | 1badd2816361354f5e69d234b4ff3315f5f590cc (diff) | |
download | cpython-840ef8f84b4b629b319f1cb960495be0fb8df4b6.zip cpython-840ef8f84b4b629b319f1cb960495be0fb8df4b6.tar.gz cpython-840ef8f84b4b629b319f1cb960495be0fb8df4b6.tar.bz2 |
more linux -> __linux__
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/libffi/src/dlmalloc.c | 2 | ||||
-rw-r--r-- | Modules/ossaudiodev.c | 2 | ||||
-rw-r--r-- | Modules/posixmodule.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ctypes/libffi/src/dlmalloc.c b/Modules/_ctypes/libffi/src/dlmalloc.c index 6e474b7..55c2d76 100644 --- a/Modules/_ctypes/libffi/src/dlmalloc.c +++ b/Modules/_ctypes/libffi/src/dlmalloc.c @@ -525,7 +525,7 @@ DEFAULT_MMAP_THRESHOLD default: 256K #define MMAP_CLEARS 1 #endif /* MMAP_CLEARS */ #ifndef HAVE_MREMAP -#ifdef linux +#ifdef __linux__ #define HAVE_MREMAP 1 #else /* linux */ #define HAVE_MREMAP 0 diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c index 2b7d71f..4796203 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -37,7 +37,7 @@ #include <sys/soundcard.h> #endif -#if defined(linux) +#ifdef __linux__ #ifndef HAVE_STDINT_H typedef unsigned long uint32_t; diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0b9b3f6..161704f 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -8446,7 +8446,7 @@ done: if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiOn:sendfile", keywords, &out, &in, &offobj, &count)) return NULL; -#ifdef linux +#ifdef __linux__ if (offobj == Py_None) { do { Py_BEGIN_ALLOW_THREADS |