changeset 20950:8555e6a74cb9

(LINUX_MAP_SHARED_DOES_WORK): Define for kernel version after 2.0. (UNEXEC_USE_MAP_PRIVATE): Don't define if LINUX_MAP_SHARED_DOES_WORK.
author Andreas Schwab <schwab@suse.de>
date Fri, 20 Feb 1998 13:06:59 +0000
parents 292cd2a2d600
children ae0c93b9ac1f
files src/s/gnu-linux.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Fri Feb 20 13:01:10 1998 +0000
+++ b/src/s/gnu-linux.h	Fri Feb 20 13:06:59 1998 +0000
@@ -47,6 +47,9 @@
 #if LINUX_VERSION_CODE > 0x10200
 #define LINUX_SIGIO_DOES_WORK
 #endif /* LINUX_VERSION_CODE > 0x10200 */
+#if LINUX_VERSION_CODE >= 0x20000
+#define LINUX_MAP_SHARED_DOES_WORK
+#endif /* LINUX_VERSION_CODE >= 0x20000 */
 #endif /* HAVE_LINUX_VERSION_H */
 #endif /* emacs */
 #endif /* NOT_C_CODE */
@@ -243,8 +246,10 @@
 
 #ifdef __ELF__
 #define UNEXEC unexelf.o
+#ifndef LINUX_MAP_SHARED_DOES_WORK
 #define UNEXEC_USE_MAP_PRIVATE
 #endif
+#endif
 
 #ifdef LINUX_QMAGIC