summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDave Nelson <David.Nelson@bellcow.com>1999-01-18 16:07:56 -0600
committerJarkko Hietaniemi <jhi@iki.fi>1999-01-19 09:11:11 +0000
commit45615152ed19be6495955de9737d8317123b0512 (patch)
tree0a6e92af182e56ec24492f8583ba9442d440d2c3 /ext
parent3aeabbed7742629accd365cc24e3608278252b86 (diff)
downloadperl-45615152ed19be6495955de9737d8317123b0512.tar.gz
SHMLBA strikes back in NetBSD/sparc.
To: jhi@iki.fi Subject: perl5.005_02 + IPC::SysV + NetBSD/Sparc Message-Id: <199901190407.WAA02543@longhorn.bellcow.com> p4raw-id: //depot/cfgperl@2647
Diffstat (limited to 'ext')
-rw-r--r--ext/IPC/SysV/SysV.xs40
1 files changed, 22 insertions, 18 deletions
diff --git a/ext/IPC/SysV/SysV.xs b/ext/IPC/SysV/SysV.xs
index 1f87a4d46e..e6c7555c68 100644
--- a/ext/IPC/SysV/SysV.xs
+++ b/ext/IPC/SysV/SysV.xs
@@ -4,32 +4,36 @@
#include <sys/types.h>
#ifdef __linux__
-#include <asm/page.h>
+# include <asm/page.h>
#endif
#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
-#include <sys/ipc.h>
-#ifdef HAS_MSG
-#include <sys/msg.h>
-#endif
-#ifdef HAS_SEM
-#include <sys/sem.h>
-#endif
-#ifdef HAS_SHM
-#if defined(PERL_SCO5) || defined(PERL_ISC)
-#include <sys/sysmacros.h>
-#endif
-#include <sys/shm.h>
-# ifndef HAS_SHMAT_PROTOTYPE
- extern Shmat_t shmat _((int, char *, int));
-# endif
-#endif
+# include <sys/ipc.h>
+# ifdef HAS_MSG
+# include <sys/msg.h>
+# endif
+# ifdef HAS_SEM
+# include <sys/sem.h>
+# endif
+# ifdef HAS_SHM
+# if defined(PERL_SCO5) || defined(PERL_ISC)
+# include <sys/sysmacros.h> /* SHMLBA */
+# endif
+# include <sys/shm.h>
+# ifndef HAS_SHMAT_PROTOTYPE
+ extern Shmat_t shmat _((int, char *, int));
+# endif
+# if defined(__NetBSD__) && defined(__sparc__)
+# undef SHMLBA /* not static: determined at boot time */
+# define SHMLBA getpagesize()
+# endif
+# endif
#endif
/* Required in BSDI to get PAGE_SIZE definition for SHMLBA.
* Ugly. More beautiful solutions welcome.
* Shouting at BSDI sounds quite beautiful. */
#ifdef __bsdi__
-# include <vm/vm_param.h>
+# include <vm/vm_param.h> /* move upwards under HAS_SHM? */
#endif
#ifndef S_IRWXU