summaryrefslogtreecommitdiff
path: root/uts
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-03-30 20:17:15 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-03-30 20:17:15 +0000
commitb5f63919c4e831b2463aae9f5e04973c8b831aa3 (patch)
treee3d7b344d6804cff81acc6081ae3e64389c69199 /uts
parent2ae875bb399de010e92d558e07dbdd21fca66738 (diff)
downloadillumos-packaging-b5f63919c4e831b2463aae9f5e04973c8b831aa3.tar.gz
Fix sys/types.h to include features.h in userspace
Diffstat (limited to 'uts')
-rw-r--r--uts/debian/changelog1
-rw-r--r--uts/debian/patches/series1
-rw-r--r--uts/debian/patches/sys_types.h-includes-features.h.patch18
3 files changed, 20 insertions, 0 deletions
diff --git a/uts/debian/changelog b/uts/debian/changelog
index a1d98c8..dee543f 100644
--- a/uts/debian/changelog
+++ b/uts/debian/changelog
@@ -6,6 +6,7 @@ uts (2.10-3) UNRELEASED; urgency=low
_XOPEN_SOURCE (through _GNU_SOURCE) is defined
(for gcc go)
* Add a guard for boolean_t to allow redefining in userspace
+ * Fix sys/types.h to include features.h in userspace
-- Igor Pashev <pashev.igor@gmail.com> Fri, 08 Mar 2013 01:28:48 +0000
diff --git a/uts/debian/patches/series b/uts/debian/patches/series
index be06088..1373bcd 100644
--- a/uts/debian/patches/series
+++ b/uts/debian/patches/series
@@ -66,3 +66,4 @@ illumos-3551-hvm_sd-module-missing-dependencies-on-scsi-and-cmlb.patch
sysmacros-gnu-compat.patch
sys_mman.h-bsd_source.patch
boolean_t-guard.patch
+sys_types.h-includes-features.h.patch
diff --git a/uts/debian/patches/sys_types.h-includes-features.h.patch b/uts/debian/patches/sys_types.h-includes-features.h.patch
new file mode 100644
index 0000000..f9aaab6
--- /dev/null
+++ b/uts/debian/patches/sys_types.h-includes-features.h.patch
@@ -0,0 +1,18 @@
+Description: type definitions must respect _GNU_SOURCE
+Index: uts/usr/src/uts/common/sys/types.h
+===================================================================
+--- uts.orig/usr/src/uts/common/sys/types.h 2013-03-17 01:13:23.425351824 +0000
++++ uts/usr/src/uts/common/sys/types.h 2013-03-30 19:54:39.069343352 +0000
+@@ -30,7 +30,12 @@
+ #ifndef _SYS_TYPES_H
+ #define _SYS_TYPES_H
+
++#if !defined(_KERNEL) && !defined(_BOOT)
++#include <features.h>
++#else
+ #include <sys/feature_tests.h>
++#endif
++
+ #include <sys/isa_defs.h>
+
+ /*