From ed0e9e982e720d56274d5c0b2cf4fe2f983f9cc4 Mon Sep 17 00:00:00 2001 From: Jonathan Perkin Date: Thu, 9 Aug 2012 12:26:06 +0100 Subject: Define __EXTENSIONS__ on Solaris to get sockaddr_in6 and sockaddr_storage [smcv: comments updated, commit message added] Reviewed-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=53286 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) 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" ;; -- cgit v1.2.3