]> granicus.if.org Git - python/commitdiff
Get build working with pre-C99 compilers
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 30 Mar 2003 20:51:29 +0000 (20:51 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 30 Mar 2003 20:51:29 +0000 (20:51 +0000)
Modules/resource.c

index e82df6d97627c04ba7f78004e6671b49497ec3d3..c1b637758dced4f0a63edb781d6d90a565bd033b 100644 (file)
@@ -195,10 +195,10 @@ resource_setrlimit(PyObject *self, PyObject *args)
 static PyObject *
 resource_getpagesize(PyObject *self, PyObject *args)
 {
+       long pagesize = 0;
        if (!PyArg_ParseTuple(args, ":getpagesize"))
                return NULL;
 
-       long pagesize = 0;
 #if defined(HAVE_GETPAGESIZE)
        pagesize = getpagesize();
 #elif defined(HAVE_SYSCONF)