summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-24 18:35:37 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-24 18:35:37 +0000
commit64abfe2b3fff3a178d77cbeaa4e22fa030b4ca51 (patch)
tree4f6bf8cdb27c108d2119a8e75bfa1e29659ef3df /libc/misc
parent1a90c75e47052d5b2360f038a822d5cac6a2e1a0 (diff)
Hope to mips build
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/sysvipc/shm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/misc/sysvipc/shm.c b/libc/misc/sysvipc/shm.c
index 4ad94e22f..a466de921 100644
--- a/libc/misc/sysvipc/shm.c
+++ b/libc/misc/sysvipc/shm.c
@@ -17,7 +17,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-/* SHMLBA uses it */
+/* SHMLBA uses it on most of the archs (not mips) */
#define __getpagesize getpagesize
#include <stdlib.h>
@@ -26,8 +26,6 @@
#include <syscall.h>
#include "ipc.h"
-libc_hidden_proto(getpagesize)
-
#ifdef L_shmat
/* Attach the shared memory segment associated with SHMID to the data
segment of the calling process. SHMADDR and SHMFLG determine how
@@ -38,6 +36,10 @@ libc_hidden_proto(getpagesize)
#ifdef __NR_shmat
_syscall3(void *, shmat, int, shmid, const void *,shmaddr, int, shmflg);
#else
+/* psm: don't remove this, else mips will fail */
+#include <unistd.h>
+libc_hidden_proto(getpagesize)
+
void * shmat (int shmid, const void *shmaddr, int shmflg)
{
int retval;