aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorRichard Brooksby2012-09-03 01:09:09 +0100
committerRichard Brooksby2012-09-03 01:09:09 +0100
commitb88b9d2d64e3d4c2c4e77e8b7836504122fcff7c (patch)
tree3501292bda680dc3a7777b2417ee873a34594c36 /mps/code
parent17977ef9c84ff8d5de6dc171591fd264426b4c23 (diff)
downloademacs-b88b9d2d64e3d4c2c4e77e8b7836504122fcff7c.tar.gz
emacs-b88b9d2d64e3d4c2c4e77e8b7836504122fcff7c.zip
Fixing up platform definitions after test build on ubuntu 12.
Copied from Perforce Change: 179181 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/lockli.c9
-rw-r--r--mps/code/mpstd.h8
-rw-r--r--mps/code/protix.c5
3 files changed, 10 insertions, 12 deletions
diff --git a/mps/code/lockli.c b/mps/code/lockli.c
index deac899e0f2..8bd03649bbf 100644
--- a/mps/code/lockli.c
+++ b/mps/code/lockli.c
@@ -22,15 +22,14 @@
22 * while we hold the mutex. 22 * while we hold the mutex.
23 */ 23 */
24 24
25#define _XOPEN_SOURCE 500
26#include <pthread.h>
27#include <semaphore.h>
28#include <errno.h>
29
30#include "mpmtypes.h" 25#include "mpmtypes.h"
31#include "lock.h" 26#include "lock.h"
32#include "config.h" 27#include "config.h"
33 28
29#include <pthread.h>
30#include <semaphore.h>
31#include <errno.h>
32
34 33
35#ifndef MPS_OS_LI 34#ifndef MPS_OS_LI
36#error "lockli.c is specific to LinuxThreads but MPS_OS_LI not defined" 35#error "lockli.c is specific to LinuxThreads but MPS_OS_LI not defined"
diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h
index 2f3f3f4d94b..a7b1783edc8 100644
--- a/mps/code/mpstd.h
+++ b/mps/code/mpstd.h
@@ -186,7 +186,9 @@
186#define MPS_WORD_SHIFT 5 186#define MPS_WORD_SHIFT 5
187#define MPS_PF_ALIGN 4 187#define MPS_PF_ALIGN 4
188 188
189#define _REENTRANT /* FIXME: What for? */ 189#ifndef _REENTRANT /* it's also defined by cc -pthread */
190#define _REENTRANT /* defines, e.g., pthread_mutexattr_settype */
191#endif
190#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */ 192#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */
191#define _GNU_SOURCE /* to get register numbers for prmci3li.c */ 193#define _GNU_SOURCE /* to get register numbers for prmci3li.c */
192 194
@@ -208,7 +210,9 @@
208#define MPS_WORD_SHIFT 6 210#define MPS_WORD_SHIFT 6
209#define MPS_PF_ALIGN 8 211#define MPS_PF_ALIGN 8
210 212
211#define _REENTRANT /* FIXME: What for? */ 213#ifndef _REENTRANT /* it's also defined by cc -pthread */
214#define _REENTRANT /* defines, e.g., pthread_mutexattr_settype */
215#endif
212#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */ 216#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */
213#define _GNU_SOURCE /* to get register numbers for prmci3li.c */ 217#define _GNU_SOURCE /* to get register numbers for prmci3li.c */
214 218
diff --git a/mps/code/protix.c b/mps/code/protix.c
index b121e2f48ae..31c272bc5b9 100644
--- a/mps/code/protix.c
+++ b/mps/code/protix.c
@@ -39,11 +39,6 @@
39 * is permitted when PROT_NONE alone is used. 39 * is permitted when PROT_NONE alone is used.
40 */ 40 */
41 41
42
43/* open sesame magic, see standards(5) */
44#define _POSIX_C_SOURCE 199309L
45#define _XOPEN_SOURCE_EXTENDED 1
46
47#include "mpm.h" 42#include "mpm.h"
48 43
49#if !defined(MPS_OS_LI) && !defined(MPS_OS_FR) && !defined(MPS_OS_XC) 44#if !defined(MPS_OS_LI) && !defined(MPS_OS_FR) && !defined(MPS_OS_XC)