Commit 37ab3715 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

file.c::pagesize: check for getpagesize()

parent 7fb8711c
......@@ -350,7 +350,8 @@ const char *fileLibraryVersion(void)
static
int pagesize(void)
{
#if defined (HAVE_MMAP)
#if defined(HAVE_MMAP) && defined(HAVE_GETPAGESIZE)
int getpagesize(void);
return ((int) getpagesize());
#else
return ((int) POSIXIO_DEFAULT_PAGESIZE);
......
......@@ -2884,21 +2884,6 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int param, int zaxisID,
}
}
// if ( editionNumber <= 1 )
// ; // not available
// else
// {
// reference = zaxisInqReference(zaxisID);
// gribapiDefLevelType(gh, gcinit, "typeOfFirstFixedSurface", GRIB2_LTYPE_REFERENCE);
// GRIB_CHECK(grib_set_long(gh, "NV", 6), 0);
// GRIB_CHECK(grib_set_double(gh, "nlev", (double) zaxisInqSize(zaxisID)), 0);
// GRIB_CHECK(grib_set_double(gh, "numberOfVGridUsed", (double) reference), 0);
// len = 16;
// if (grib_set_bytes(gh, "uuidOfVGrid", (unsigned char *) zaxisInqUUID(zaxisID, uuid), &len) != 0)
// Warning("Can't write UUID!");
// GRIB_CHECK(grib_set_double(gh, "level", level), 0);
// }
break;
}
case ZAXIS_GENERIC:
......
......@@ -698,7 +698,7 @@ void zaxisDefReference(int zaxisID, const int reference)
{
zaxis_t *zaxisptr;
if ( reshGetStatus ( zaxisID, &zaxisOps ) == CLOSED )
if ( reshGetStatus ( zaxisID, &zaxisOps ) == CLOSED )
{
xwarning("%s", "Operation not executed.");
return;
......
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