summaryrefslogtreecommitdiff
path: root/libc/debian/patches
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-06-04 22:19:46 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-06-04 22:19:46 +0400
commit2aafa41701c64c001adfe80b3ec7ab6c2cbc77e8 (patch)
treefe3754599c4576c817a4d2494da07f7e8376fd5d /libc/debian/patches
parent10e6a26d46527443a81af51ddf24663eadb20f59 (diff)
downloadillumos-packaging-2aafa41701c64c001adfe80b3ec7ab6c2cbc77e8.tar.gz
Define sighandler_t and sig_t in signal.h
Diffstat (limited to 'libc/debian/patches')
-rw-r--r--libc/debian/patches/libc-add-sig_t.patch27
-rw-r--r--libc/debian/patches/series1
2 files changed, 28 insertions, 0 deletions
diff --git a/libc/debian/patches/libc-add-sig_t.patch b/libc/debian/patches/libc-add-sig_t.patch
new file mode 100644
index 0000000..75d7329
--- /dev/null
+++ b/libc/debian/patches/libc-add-sig_t.patch
@@ -0,0 +1,27 @@
+Index: libc/usr/src/head/signal.h
+===================================================================
+--- libc.orig/usr/src/head/signal.h 2012-10-08 04:25:37.000000000 +0400
++++ libc/usr/src/head/signal.h 2013-06-04 22:18:27.492649894 +0400
+@@ -33,7 +33,7 @@
+
+ #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5.3.4 */
+
+-#include <sys/feature_tests.h>
++#include <features.h>
+
+ #if defined(__EXTENSIONS__) || !defined(_STRICT_STDC) || \
+ defined(__XOPEN_OR_POSIX)
+@@ -57,6 +57,13 @@
+ extern "C" {
+ #endif
+
++typedef void (*__sighandler_t)(int);
++#ifdef _GNU_SOURCE
++typedef __sighandler_t sighandler_t;
++#endif
++#ifdef __EXTENSIONS__
++typedef __sighandler_t sig_t;
++#endif
+
+ #if defined(__STDC__)
+
diff --git a/libc/debian/patches/series b/libc/debian/patches/series
index b64ac99..f21eb24 100644
--- a/libc/debian/patches/series
+++ b/libc/debian/patches/series
@@ -76,3 +76,4 @@ rpcinfo-MAX.patch
libc-add-gnu-strerror_r.patch
libc-regex.h-define-REG_NOERROR.patch
nss_status-glibc-compat.patch
+libc-add-sig_t.patch