mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
more linux -> __linux__
This commit is contained in:
parent
1badd28163
commit
840ef8f84b
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
|
||||
#if defined(linux)
|
||||
#ifdef __linux__
|
||||
|
||||
#ifndef HAVE_STDINT_H
|
||||
typedef unsigned long uint32_t;
|
||||
|
|
|
|||
|
|
@ -8446,7 +8446,7 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict)
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue