Module Name:    src
Committed By:   christos
Date:           Sun Jan 17 22:51:32 UTC 2016

Modified Files:
        src/external/gpl2/libmalloc/dist: getpagesize.h

Log Message:
include unistd.h for getpagesize()


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl2/libmalloc/dist/getpagesize.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/libmalloc/dist/getpagesize.h
diff -u src/external/gpl2/libmalloc/dist/getpagesize.h:1.3 src/external/gpl2/libmalloc/dist/getpagesize.h:1.4
--- src/external/gpl2/libmalloc/dist/getpagesize.h:1.3	Fri Jan 15 10:13:28 2016
+++ src/external/gpl2/libmalloc/dist/getpagesize.h	Sun Jan 17 17:51:32 2016
@@ -1,16 +1,17 @@
-/*	$NetBSD: getpagesize.h,v 1.3 2016/01/15 15:13:28 christos Exp $	*/
+/*	$NetBSD: getpagesize.h,v 1.4 2016/01/17 22:51:32 christos Exp $	*/
 
 /* Emulate getpagesize on systems that lack it.  */
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifndef HAVE_GETPAGESIZE
 
 #ifdef VMS
 #define getpagesize() 512
 #endif
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
 
 #ifdef _SC_PAGESIZE
 #define getpagesize() sysconf(_SC_PAGESIZE)
@@ -22,7 +23,7 @@
 #define getpagesize() EXEC_PAGESIZE
 #else
 #ifdef NBPG
-#define getpagesize() NBPG * CLSIZE
+#define getpagesize() (NBPG * CLSIZE)
 #ifndef CLSIZE
 #define CLSIZE 1
 #endif /* no CLSIZE */

Reply via email to