X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/8e4c450d30c4e641eaf0b78bfdf28610526fac84..a3fc8840a3c1586b17c9d211e959571fba365af6:/src/s/gnu-linux.h diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index ccce9cc84d..3113565d36 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -47,6 +47,9 @@ Boston, MA 02111-1307, USA. */ #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 */ @@ -160,7 +163,11 @@ Boston, MA 02111-1307, USA. */ /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option says where to find X windows at run time. */ +#ifdef __mips__ +#define LD_SWITCH_SYSTEM -G 0 LD_SWITCH_X_SITE_AUX +#else #define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX +#endif /* __mips__ */ #endif /* __ELF__ */ /* As of version 1.1.51, Linux did not actually implement SIGIO. @@ -239,8 +246,10 @@ Boston, MA 02111-1307, USA. */ #ifdef __ELF__ #define UNEXEC unexelf.o +#ifndef LINUX_MAP_SHARED_DOES_WORK #define UNEXEC_USE_MAP_PRIVATE #endif +#endif #ifdef LINUX_QMAGIC