Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/libmalloc/dist include unistd.h for getpagesize()
details: https://anonhg.NetBSD.org/src/rev/26a710df625e
branches: trunk
changeset: 813141:26a710df625e
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 17 22:51:32 2016 +0000
description:
include unistd.h for getpagesize()
diffstat:
external/gpl2/libmalloc/dist/getpagesize.h | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r fb2b96588e47 -r 26a710df625e external/gpl2/libmalloc/dist/getpagesize.h
--- a/external/gpl2/libmalloc/dist/getpagesize.h Sun Jan 17 22:32:09 2016 +0000
+++ b/external/gpl2/libmalloc/dist/getpagesize.h Sun Jan 17 22:51:32 2016 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index