summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorRichard PALO <richard@NetBSD.org>2014-11-10 17:30:44 +0100
committerMichael Stahl <mstahl@redhat.com>2014-11-11 19:50:14 +0100
commit46fe02b89b2a7f93930f16a399d48efaae0232a4 (patch)
tree87ce08bc65f3c04cefc81b57af72e6d8fc3ee9fe /sal
parent821b016a5054c69ef64a341c1d0c390ec31d86cc (diff)
improve SOLARIS guard
Change-Id: Ic5edb7c0977b6c589329cd80616aa320d6cc929b Signed-off-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 5f35b74bb1367a07b1f2d85c6665b31c906b9538)
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h
index 3a0babd4e53c..2cdf7fd6baad 100644
--- a/sal/osl/unx/system.h
+++ b/sal/osl/unx/system.h
@@ -43,7 +43,7 @@
#include <sys/types.h>
/* Make sockets of type AF_UNIX use underlying FS rights */
-#ifdef SOLARIS
+#if defined(SOLARIS) && !defined(_XOPEN_SOURCE)
# define _XOPEN_SOURCE 500
# include <sys/socket.h>
# undef _XOPEN_SOURCE