Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-10-08 21:40:57 +0400
committerJeff Johnston <jjohnstn@redhat.com>2004-10-08 21:40:57 +0400
commit73131c2d20a76e0e839b4cacd66467c7b8e6cd13 (patch)
treefedda0047660a16cf821cedf1568c7582f22ea02
parentb39ffd8c4a8981f0444fef3a2921e317634f5309 (diff)
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 06133c25b..388d48027 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 2bfbbf0a8..9b6d7f891 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