aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-10-08 17:40:57 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-10-08 17:40:57 +0000
commit73131c2d20a76e0e839b4cacd66467c7b8e6cd13 (patch)
treefedda0047660a16cf821cedf1568c7582f22ea02
parentb39ffd8c4a8981f0444fef3a2921e317634f5309 (diff)
downloadnewlib-73131c2d20a76e0e839b4cacd66467c7b8e6cd13.zip
newlib-73131c2d20a76e0e839b4cacd66467c7b8e6cd13.tar.gz
newlib-73131c2d20a76e0e839b4cacd66467c7b8e6cd13.tar.bz2
2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/signal.h: If <signal.h> didn't include this header file, include <signal.h> to account for applications that take advantage that the two header files are the same in glibc.
-rw-r--r--newlib/ChangeLog7
-rw-r--r--newlib/libc/include/sys/signal.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 06133c2..388d480 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,10 @@
+2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
+
+ * libc/include/sys/signal.h: If <signal.h> didn't include
+ this header file, include <signal.h> to account for
+ applications that take advantage that the two header
+ files are the same in glibc.
+
2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
* configure.host: Add support for crx.
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index 2bfbbf0..9b6d7f8 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
@@ -3,6 +3,12 @@
#ifndef _SYS_SIGNAL_H
#define _SYS_SIGNAL_H
+#ifndef _SIGNAL_H_
+/* Some applications take advantage of the fact that <sys/signal.h>
+ * and <signal.h> are equivalent in glibc. Allow for that here. */
+#include <signal.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif