]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Define __EXTENSIONS__ on Solaris to get sockaddr_in6 and sockaddr_storage
authorJonathan Perkin <jonathan perkin org uk>
Thu, 9 Aug 2012 11:26:06 +0000 (12:26 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 9 Aug 2012 11:26:06 +0000 (12:26 +0100)
[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

configure.ac

index 4f86e9df518c3a30b74693714dd5c61a8bb3a814..e8fc1aef80b6e2060f738c97880a98676dd22c8d 100644 (file)
@@ -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"
         ;;