msg__control, msg_controllen,
and msg_flags in assuan-domain-connect.c
Marcus Brinkmann
marcus.brinkmann at ruhr-uni-bochum.de
Mon Sep 12 16:25:10 CEST 2005
At Wed, 31 Aug 2005 16:19:56 -0500,
Martin Traviolia <martin.traviolia at mci.com> wrote:
>
> I am building libassuan-0.6.10 on Solaris 9 using Sun's 5.6 C compiler.
>
> In the file "assuan-domain-connect.c" the fields "msg_control",
> "msg_controllen" and "msg_flags" are used from "struct msghdr".
>
> These fields are only defined on Solaris if "_XOPEN_SOURCE" and
> _XOPEN_SOURCE_EXTENDED" are defined, or if "_XOPEN_SOURCE" = 500
Can you try this patch? If it doesn't work, I need the value of
ac_cv_host in config.log (or whatever it was called :)
2005-09-12 Marcus Brinkmann <marcus at g10code.de>
* configure.ac: Call AC_CANONICAL_HOST. Add definitions for
Solaris.
Thanks,
Marcus
Index: configure.ac
===================================================================
--- configure.ac (Revision 187)
+++ configure.ac (Arbeitskopie)
@@ -70,6 +70,7 @@
#
# Options depending on the host OS.
#
+AC_CANONCICAL_HOST
have_dosish_system=no
have_w32_system=no
case "${host}" in
@@ -77,6 +78,11 @@
have_dosish_system=yes
have_w32_system=yes
;;
+ *-*-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
if test "$have_dosish_system" = yes; then
More information about the Gnupg-devel
mailing list