null+****@clear*****
null+****@clear*****
2011年 10月 25日 (火) 16:20:19 JST
Kouhei Sutou 2011-10-25 07:20:19 +0000 (Tue, 25 Oct 2011) New Revision: 72eaf907726869a6ebf0812de34ffa677e984503 Log: define _XPG4_2 for msghdr.msg_control on Solaris. Modified files: configure.ac Modified: configure.ac (+16 -0) =================================================================== --- configure.ac 2011-10-25 07:16:08 +0000 (8d1e66c) +++ configure.ac 2011-10-25 07:20:19 +0000 (0f4c774) @@ -50,6 +50,17 @@ case "$host_os" in esac AC_MSG_RESULT([$netbsd]) +AC_MSG_CHECKING([for Solaris.]) +case "$host_os" in + solaris*) + soralis=yes + ;; + *) + soralis=no + ;; +esac +AC_MSG_RESULT([$soralis]) + AC_C_BIGENDIAN AC_PROG_CXX AC_PROG_CC @@ -193,6 +204,11 @@ if test "$netbsd" = "yes"; then AC_DEFINE(_NETBSD_SOURCE, [1], [Define to 1 if you are on NetBSD.]) fi +if test "$soralis" = "yes"; then + AC_DEFINE(_XPG4_2, [1], + [Define to 1 for msghdr.msg_control if you are on Solaris.]) +fi + # AIO AC_ARG_ENABLE(aio, [AS_HELP_STRING([--enable-aio],