Get build working with pre-C99 compilers
This commit is contained in:
parent
1a99cf045d
commit
1ac3e39913
|
@ -195,10 +195,10 @@ resource_setrlimit(PyObject *self, PyObject *args)
|
||||||
static PyObject *
|
static PyObject *
|
||||||
resource_getpagesize(PyObject *self, PyObject *args)
|
resource_getpagesize(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
|
long pagesize = 0;
|
||||||
if (!PyArg_ParseTuple(args, ":getpagesize"))
|
if (!PyArg_ParseTuple(args, ":getpagesize"))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
long pagesize = 0;
|
|
||||||
#if defined(HAVE_GETPAGESIZE)
|
#if defined(HAVE_GETPAGESIZE)
|
||||||
pagesize = getpagesize();
|
pagesize = getpagesize();
|
||||||
#elif defined(HAVE_SYSCONF)
|
#elif defined(HAVE_SYSCONF)
|
||||||
|
|
Loading…
Reference in New Issue