diff options
author | Jonathan Perkin <jonathan perkin org uk> | 2012-08-09 12:26:06 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-08-09 12:26:06 +0100 |
commit | ed0e9e982e720d56274d5c0b2cf4fe2f983f9cc4 (patch) | |
tree | ab1fa945413eacada96fcfa5dc8ac5c0afadce98 | |
parent | e98107548c5cd0a9da9d5a15e20177be0e479459 (diff) | |
download | dbus-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.ac | 2 |
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" ;; |