summaryrefslogtreecommitdiff
path: root/libc/debian/patches
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-04-02 18:52:23 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-04-02 18:52:23 +0400
commitafebb15c47237c1963d622177dcfecbe61f37ecc (patch)
tree4480a1f8284f7ecf54c5a772ed564a9565df1be7 /libc/debian/patches
parentf604cd70ffee227fc04ef8a19978f8d03e85e566 (diff)
downloadillumos-packaging-afebb15c47237c1963d622177dcfecbe61f37ecc.tar.gz
Fixed macro guards in unistd.h for get/set -domainname
Diffstat (limited to 'libc/debian/patches')
-rw-r--r--libc/debian/patches/define-getdomainname.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/debian/patches/define-getdomainname.patch b/libc/debian/patches/define-getdomainname.patch
index b2b2f7f..f487207 100644
--- a/libc/debian/patches/define-getdomainname.patch
+++ b/libc/debian/patches/define-getdomainname.patch
@@ -1,13 +1,13 @@
-Index: b/usr/src/head/unistd.h
+Index: libc/usr/src/head/unistd.h
===================================================================
---- a/usr/src/head/unistd.h 2014-03-02 23:24:59.607324620 +0400
-+++ b/usr/src/head/unistd.h 2014-03-02 23:25:01.891531913 +0400
+--- libc.orig/usr/src/head/unistd.h 2014-04-02 18:48:40.166372612 +0400
++++ libc/usr/src/head/unistd.h 2014-04-02 18:51:30.307758766 +0400
@@ -1133,6 +1133,13 @@
extern char **environ;
#endif
+#if defined(_BSD_SOURCE) || \
-+ (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 500) || \
++ (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0 < 500)) || \
+ defined(__EXTENSIONS__)
+int getdomainname(char *, size_t);
+int setdomainname(const char *, size_t);