summaryrefslogtreecommitdiff
path: root/include/signal.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-02 21:59:58 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-03 18:22:50 +0100
commit5e22e71adfef5ad46119cea98fccf4ae998ad0d8 (patch)
tree5d7977ca4df6a6cc1a6621b6ca5a83f4d5228a57 /include/signal.h
parent8116ca7baec0ff8c9bc35a2920aa36549e6004a4 (diff)
remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and STRICT_HEADERS
Remove ucontext.h if SUSV4_LEGACY is not set and fix it's references. Guard sigstack structure with SUSV4_LEGACY and STRICT_HEADERS. Disable sigstack function prototype, it is not provided by uClibc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'include/signal.h')
-rw-r--r--include/signal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/signal.h b/include/signal.h
index 80e4edee0..37ed29780 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -392,14 +392,17 @@ extern int siginterrupt (int __sig, int __interrupt) __THROW;
# include <bits/sigstack.h>
# ifdef __USE_XOPEN
/* This will define `ucontext_t' and `mcontext_t'. */
-# include <ucontext.h>
+/* SuSv4 obsoleted include/ucontext.h */
+# include <sys/ucontext.h>
# endif
+# if 0
/* Run signals handlers on the stack specified by SS (if not NULL).
If OSS is not NULL, it is filled in with the old signal stack status.
This interface is obsolete and on many platform not implemented. */
extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
__THROW __attribute_deprecated__;
+# endif
/* Alternate signal handler stack interface.
This interface should always be preferred over `sigstack'. */