summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan perkin org uk>2012-08-09 12:26:06 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-09 12:26:06 +0100
commited0e9e982e720d56274d5c0b2cf4fe2f983f9cc4 (patch)
treeab1fa945413eacada96fcfa5dc8ac5c0afadce98
parente98107548c5cd0a9da9d5a15e20177be0e479459 (diff)
downloaddbus-ed0e9e982e720d56274d5c0b2cf4fe2f983f9cc4.tar.gz
dbus-ed0e9e982e720d56274d5c0b2cf4fe2f983f9cc4.tar.bz2
dbus-ed0e9e982e720d56274d5c0b2cf4fe2f983f9cc4.zip
Define __EXTENSIONS__ on Solaris to get sockaddr_in6 and sockaddr_storage
[smcv: comments updated, commit message added] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=53286
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4f86e9df..e8fc1aef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1379,6 +1379,8 @@ case $host_os in
solaris*)
# Solaris' C library apparently needs these runes to be threadsafe...
CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
+ # ... this opt-in to get sockaddr_in6 and sockaddr_storage...
+ CFLAGS="$CFLAGS -D__EXTENSIONS__"
# ... and this opt-in to get file descriptor passing support
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
;;