summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Burlison <Alan.Burlison@uk.sun.com>2003-12-12 23:04:52 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-12-12 23:54:25 +0000
commit308d26d578ee2df470607dca403b28c61f26c974 (patch)
tree9f5ac19046d049359b35edbb674078efe380e087
parent8df1e0a2b21ea34567b1f903327ae2a11bb9b86e (diff)
downloadperl-308d26d578ee2df470607dca403b28c61f26c974.tar.gz
Modify the common guard for the signal.h header, because
C99 compilers don't like it.o see : Subject: UNIX03 & C99 issue with 5.8.2 Message-ID: <3FDA4994.6050209@sun.com> p4raw-id: //depot/perl@21883
-rw-r--r--doio.c2
-rw-r--r--doop.c2
-rw-r--r--mg.c2
-rw-r--r--mpeix/mpeixish.h2
-rw-r--r--plan9/plan9ish.h2
-rw-r--r--unixish.h2
-rw-r--r--util.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/doio.c b/doio.c
index af4d17d487..40287f9a2b 100644
--- a/doio.c
+++ b/doio.c
@@ -48,7 +48,7 @@
# define OPEN_EXCL 0
#endif
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+#if !defined(NSIG) || defined(M_UNIX) || defined(__unix) || defined(M_XENIX)
#include <signal.h>
#endif
diff --git a/doop.c b/doop.c
index 5a41f6ac42..91c7ae1b63 100644
--- a/doop.c
+++ b/doop.c
@@ -17,7 +17,7 @@
#include "perl.h"
#ifndef PERL_MICRO
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+#if !defined(NSIG) || defined(M_UNIX) || defined(__unix) || defined(M_XENIX)
#include <signal.h>
#endif
#endif
diff --git a/mg.c b/mg.c
index 4ef7910bd6..0cd694038a 100644
--- a/mg.c
+++ b/mg.c
@@ -398,7 +398,7 @@ Perl_mg_free(pTHX_ SV *sv)
}
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+#if !defined(NSIG) || defined(M_UNIX) || defined(__unix) || defined(M_XENIX)
#include <signal.h>
#endif
diff --git a/mpeix/mpeixish.h b/mpeix/mpeixish.h
index 658e72ef87..4e96f0ec4a 100644
--- a/mpeix/mpeixish.h
+++ b/mpeix/mpeixish.h
@@ -87,7 +87,7 @@
*/
/* #define ALTERNATE_SHEBANG "#!" / **/
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+#if !defined(NSIG) || defined(M_UNIX) || defined(__unix) || defined(M_XENIX)
# include <signal.h>
#endif
diff --git a/plan9/plan9ish.h b/plan9/plan9ish.h
index 5c922cf0ba..1469e10211 100644
--- a/plan9/plan9ish.h
+++ b/plan9/plan9ish.h
@@ -93,7 +93,7 @@
*/
/* #define ALTERNATE_SHEBANG "#!" / **/
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+#if !defined(NSIG) || defined(M_UNIX) || defined(__unix) || defined(M_XENIX)
# include <signal.h>
#endif
diff --git a/unixish.h b/unixish.h
index 4bf37095a0..65ce7d6f16 100644
--- a/unixish.h
+++ b/unixish.h
@@ -103,7 +103,7 @@
*/
/* #define ALTERNATE_SHEBANG "#!" / **/
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#if !defined(NSIG) || defined(M_UNIX) || defined(__unix) || defined(M_XENIX) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
# include <signal.h>
#endif
diff --git a/util.c b/util.c
index 4a1a45ff4d..602bc9bbdb 100644
--- a/util.c
+++ b/util.c
@@ -18,7 +18,7 @@
#include "perl.h"
#ifndef PERL_MICRO
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+#if !defined(NSIG) || defined(M_UNIX) || defined(__unix) || defined(M_XENIX)
#include <signal.h>
#endif