From: Bruno Haible Date: Sun, 13 Mar 2011 22:59:21 +0000 (+0100) Subject: passfd: Fix link error on AIX 5.2. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6234d83ceaa130a50e84a4f8f974b41dc7ae2cce;p=pspp passfd: Fix link error on AIX 5.2. * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT. --- diff --git a/ChangeLog b/ChangeLog index 873a4c369c..6651067b78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-03-13 Bruno Haible + + passfd: Fix link error on AIX 5.2. + * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT. + 2011-03-13 Bruno Haible passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4. diff --git a/m4/afunix.m4 b/m4/afunix.m4 index d218537cc1..46b3bf3443 100644 --- a/m4/afunix.m4 +++ b/m4/afunix.m4 @@ -1,4 +1,4 @@ -# afunix.m4 serial 4 +# afunix.m4 serial 5 dnl Copyright (C) 2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -38,6 +38,10 @@ AC_DEFUN([gl_SOCKET_AFUNIX], [Define to 1 if defines SCM_RIGHTS.]) fi + dnl Persuade AIX 5.2 to declare CMSG_SPACE, CMSG_LEN. + AC_DEFINE([_LINUX_SOURCE_COMPAT], [1], + [Define in order to get some macros on AIX systems.]) + AC_MSG_CHECKING([for UNIX domain sockets SCM_RIGHTS that behave in BSD4.4 way]) AC_CACHE_VAL([gl_cv_socket_unix_scm_rights_bsd44_way], [AC_COMPILE_IFELSE(