mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-19 19:21:34 +01:00
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
This commit is contained in:
parent
e98107548c
commit
ed0e9e982e
1 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue