]> granicus.if.org Git - python/commitdiff
more linux -> __linux__
authorBenjamin Peterson <benjamin@python.org>
Wed, 7 Sep 2016 21:45:10 +0000 (14:45 -0700)
committerBenjamin Peterson <benjamin@python.org>
Wed, 7 Sep 2016 21:45:10 +0000 (14:45 -0700)
Modules/_ctypes/libffi/src/dlmalloc.c
Modules/ossaudiodev.c
Modules/posixmodule.c

index 6e474b7c4f02011581abc0ec4a511e29345fbc85..55c2d768b290bdd2a4634d40f4091b444659c80f 100644 (file)
@@ -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
index 2b7d71f64f1927a8ef0ff31b34af4a806fd05667..4796203e57c0585513f1973d45d91a94d244d432 100644 (file)
@@ -37,7 +37,7 @@
 #include <sys/soundcard.h>
 #endif
 
-#if defined(linux)
+#ifdef __linux__
 
 #ifndef HAVE_STDINT_H
 typedef unsigned long uint32_t;
index 0b9b3f617f21711b8deb942a0fc1086d35ffa07a..161704fcae4096ec2cb4a1bbcfd0c4b31250029c 100644 (file)
@@ -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