summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/getpagesize.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/getpagesize.c')
-rw-r--r--cpukit/libcsupport/src/getpagesize.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/getpagesize.c b/cpukit/libcsupport/src/getpagesize.c
new file mode 100644
index 0000000000..3ea44be1fa
--- /dev/null
+++ b/cpukit/libcsupport/src/getpagesize.c
@@ -0,0 +1,22 @@
+/*
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <unistd.h>
+#include <sys/param.h>
+
+/*
+ * Get System Page Size (from SVR4 and 4.2+ BSD)
+ *
+ * This is not a functional version but the SPARC backend for at least
+ * gcc 2.8.1 plus gnat 3.13p and gcc 3.0.1 require it to be there and
+ * return a reasonable value.
+ */
+int getpagesize(void)
+{
+ return PAGE_SIZE;
+}