[glib] Add required defines on solaris for GSocket to build (#582856)
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [glib] Add required defines on solaris for GSocket to build (#582856)
- Date: Wed, 27 May 2009 05:15:05 -0400 (EDT)
commit 623f99dc3dee7712da4ac209ba445b2199b2963c
Author: Alexander Larsson <alexl redhat com>
Date: Wed May 27 11:11:37 2009 +0200
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.
---
configure.in | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/configure.in b/configure.in
index 185a25f..e25431e 100644
--- a/configure.in
+++ b/configure.in
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]