Kaydet (Commit) 840ef8f8 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

more linux -> __linux__

üst 1badd281
...@@ -525,7 +525,7 @@ DEFAULT_MMAP_THRESHOLD default: 256K ...@@ -525,7 +525,7 @@ DEFAULT_MMAP_THRESHOLD default: 256K
#define MMAP_CLEARS 1 #define MMAP_CLEARS 1
#endif /* MMAP_CLEARS */ #endif /* MMAP_CLEARS */
#ifndef HAVE_MREMAP #ifndef HAVE_MREMAP
#ifdef linux #ifdef __linux__
#define HAVE_MREMAP 1 #define HAVE_MREMAP 1
#else /* linux */ #else /* linux */
#define HAVE_MREMAP 0 #define HAVE_MREMAP 0
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include <sys/soundcard.h> #include <sys/soundcard.h>
#endif #endif
#if defined(linux) #ifdef __linux__
#ifndef HAVE_STDINT_H #ifndef HAVE_STDINT_H
typedef unsigned long uint32_t; typedef unsigned long uint32_t;
......
...@@ -8446,7 +8446,7 @@ done: ...@@ -8446,7 +8446,7 @@ done:
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiOn:sendfile", if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiOn:sendfile",
keywords, &out, &in, &offobj, &count)) keywords, &out, &in, &offobj, &count))
return NULL; return NULL;
#ifdef linux #ifdef __linux__
if (offobj == Py_None) { if (offobj == Py_None) {
do { do {
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment