From: Dave Nelson Date: Mon, 18 Jan 1999 22:07:56 +0000 (-0600) Subject: SHMLBA strikes back in NetBSD/sparc. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45615152ed19be6495955de9737d8317123b0512;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/ext/IPC/SysV/SysV.xs b/ext/IPC/SysV/SysV.xs index 1f87a4d..e6c7555 100644 --- a/ext/IPC/SysV/SysV.xs +++ b/ext/IPC/SysV/SysV.xs @@ -4,32 +4,36 @@ #include #ifdef __linux__ -#include +# include #endif #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM) -#include -#ifdef HAS_MSG -#include -#endif -#ifdef HAS_SEM -#include -#endif -#ifdef HAS_SHM -#if defined(PERL_SCO5) || defined(PERL_ISC) -#include -#endif -#include -# ifndef HAS_SHMAT_PROTOTYPE - extern Shmat_t shmat _((int, char *, int)); -# endif -#endif +# include +# ifdef HAS_MSG +# include +# endif +# ifdef HAS_SEM +# include +# endif +# ifdef HAS_SHM +# if defined(PERL_SCO5) || defined(PERL_ISC) +# include /* SHMLBA */ +# endif +# include +# 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 +# include /* move upwards under HAS_SHM? */ #endif #ifndef S_IRWXU