svn commit: trunk/uClibc/libc/misc/sysvipc

psm at uclibc.org psm at uclibc.org
Tue Jan 24 18:35:38 UTC 2006


Author: psm
Date: 2006-01-24 10:35:37 -0800 (Tue, 24 Jan 2006)
New Revision: 13568

Log:
Hope to mips build

Modified:
   trunk/uClibc/libc/misc/sysvipc/shm.c


Changeset:
Modified: trunk/uClibc/libc/misc/sysvipc/shm.c
===================================================================
--- trunk/uClibc/libc/misc/sysvipc/shm.c	2006-01-24 18:25:51 UTC (rev 13567)
+++ trunk/uClibc/libc/misc/sysvipc/shm.c	2006-01-24 18:35:37 UTC (rev 13568)
@@ -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 @@
 #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;




More information about the uClibc-cvs mailing list