projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a251cf1
)
[project @ 1997-05-18 03:54:56 by sof]
author
sof
<unknown>
Sun, 18 May 1997 03:54:56 +0000
(
03:54
+0000)
committer
sof
<unknown>
Sun, 18 May 1997 03:54:56 +0000
(
03:54
+0000)
AIX mods
ghc/runtime/storage/mprotect.lc
patch
|
blob
|
history
diff --git
a/ghc/runtime/storage/mprotect.lc
b/ghc/runtime/storage/mprotect.lc
index
96bd44b
..
316572d
100644
(file)
--- a/
ghc/runtime/storage/mprotect.lc
+++ b/
ghc/runtime/storage/mprotect.lc
@@
-49,6
+49,11
@@
int getpagesize PROTO((void));
int mprotect PROTO((caddr_t, size_t, int));
#endif
int mprotect PROTO((caddr_t, size_t, int));
#endif
+#if defined(aix_TARGET_OS)
+/* PROT_NONE doesn't work on aix, PROT_READ works and should suit the job */
+#define PROT_NONE PROT_READ
+#endif
+
/* Needed for FreeBSD (SDM, 96/03) */
#ifndef PROT_NONE
#define PROT_NONE 0
/* Needed for FreeBSD (SDM, 96/03) */
#ifndef PROT_NONE
#define PROT_NONE 0