summaryrefslogtreecommitdiff
path: root/uts/debian/patches/sys_types.h-includes-features.h.patch
blob: 77a3c74cb23262e5abfb415d1e019aa7af6743d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: type definitions must respect _GNU_SOURCE
Index: b/usr/src/uts/common/sys/types.h
===================================================================
--- a/usr/src/uts/common/sys/types.h	2014-03-01 22:56:13.834286748 +0400
+++ b/usr/src/uts/common/sys/types.h	2014-03-01 22:56:16.049081151 +0400
@@ -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>
 
 /*