|
@@ -17,7 +17,7 @@
|
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
|
|
-
|
|
|
+
|
|
|
#define __getpagesize getpagesize
|
|
|
|
|
|
#include <stdlib.h>
|
|
@@ -26,8 +26,6 @@
|
|
|
#include <syscall.h>
|
|
|
#include "ipc.h"
|
|
|
|
|
|
-libc_hidden_proto(getpagesize)
|
|
|
-
|
|
|
#ifdef L_shmat
|
|
|
|
|
|
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
|
|
|
+
|
|
|
+#include <unistd.h>
|
|
|
+libc_hidden_proto(getpagesize)
|
|
|
+
|
|
|
void * shmat (int shmid, const void *shmaddr, int shmflg)
|
|
|
{
|
|
|
int retval;
|