about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-02-17 22:57:26 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-02-17 22:57:26 +0100
commit13768813bcec803e4d269dc597411804bb4c37b1 (patch)
tree003f805604c46816b9e5043c7fff982e94670728 /sysdeps
parent6aca1b6102733ba1d7f2be4088e33ce6966385d1 (diff)
downloadglibc-13768813bcec803e4d269dc597411804bb4c37b1.tar.gz
glibc-13768813bcec803e4d269dc597411804bb4c37b1.tar.xz
glibc-13768813bcec803e4d269dc597411804bb4c37b1.zip
hurd: Define EXEC_PAGESIZE
* mach/Makefile (headers): Add mach/param.h.
* sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
* sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/bits/param.h2
-rw-r--r--sysdeps/mach/i386/mach/param.h25
2 files changed, 27 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/bits/param.h b/sysdeps/mach/hurd/bits/param.h
index 736fac1716..7d535712a4 100644
--- a/sysdeps/mach/hurd/bits/param.h
+++ b/sysdeps/mach/hurd/bits/param.h
@@ -20,6 +20,8 @@
 # error "Never use <bits/param.h> directly; include <sys/param.h> instead."
 #endif
 
+#include <mach/param.h>
+
 /* This file is deprecated and is provided only for compatibility with
    Unix systems.  It is unwise to include this file on programs which
    are intended only for GNU systems.
diff --git a/sysdeps/mach/i386/mach/param.h b/sysdeps/mach/i386/mach/param.h
new file mode 100644
index 0000000000..20329ff8fc
--- /dev/null
+++ b/sysdeps/mach/i386/mach/param.h
@@ -0,0 +1,25 @@
+/* Old-style Unix parameters and limits.  i386 Mach version.
+   Copyright (C) 1993-2018 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#ifndef _SYS_PARAM_H
+# error "Never use <mach/param.h> directly; include <sys/param.h> instead."
+#endif
+
+#ifndef EXEC_PAGESIZE
+#define EXEC_PAGESIZE	4096
+#endif