From: Benjamin Peterson Date: Wed, 7 Sep 2016 21:45:10 +0000 (-0700) Subject: more linux -> __linux__ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=840ef8f84b4b629b319f1cb960495be0fb8df4b6;p=python more linux -> __linux__ --- diff --git a/Modules/_ctypes/libffi/src/dlmalloc.c b/Modules/_ctypes/libffi/src/dlmalloc.c index 6e474b7c4f..55c2d768b2 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 2b7d71f64f..4796203e57 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -37,7 +37,7 @@ #include #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 0b9b3f617f..161704fcae 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