mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
Add required defines on solaris for GSocket to build (#582856)
Turns out that the msg_control and related things are not defined in the system headers unless you define some _XOPEN_SOURCE things.
This commit is contained in:
parent
f99be75ff9
commit
623f99dc3d
@ -1010,6 +1010,14 @@ if test $glib_native_win32 = no; then
|
||||
AC_SUBST(LIBASYNCNS_LIBADD)
|
||||
fi
|
||||
|
||||
case $host in
|
||||
*-*-solaris* )
|
||||
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
|
||||
AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris)
|
||||
AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl
|
||||
dnl if statfs() takes 2 arguments (Posix) or 4 (Solaris)
|
||||
dnl
|
||||
|
Loading…
Reference in New Issue
Block a user