GNOME Bugzilla – Bug 535908
use AC_USE_SYSTEM_EXTENSIONS in configure in lieu of AC_ISC_POSIX
Last modified: 2008-06-03 15:34:55 UTC
The AC_ISC_POSIX macro is not deprecated since autoconf 2.6. Furthermore, using it cause gamin to fail to compile when using glibc-headers 2.8.3 because "struct ucred" defined in /usr/include/bits/socket.h is present only if the __USE_GNU macro is defined. When the __USE_GNU macro is not defined, libgamin/gam_api.c fails to build at line 715 because struct ucred is not known. It appears that the AC_ISC_POSIX macro in configure.in does not define the __USE_GNU macro on GNU platforms. The USE_SYSTEM_EXTENSIONS macro is the one to be used now that the AC_ISC_POSIX macro is deprecated. The USE_SYSTEM_EXTENSIONS properly defines the __USE_GNU macro on GNU systems. I have attached a patch that fixes the problem for me
Created attachment 111844 [details] [review] use AC_USE_SYSTEM_EXTENSIONS instead of AC_ISC_POSIX in configure
Comment on attachment 111844 [details] [review] use AC_USE_SYSTEM_EXTENSIONS instead of AC_ISC_POSIX in configure This patch applies to gamin 0.1.8 btw.
Okidoc, applied and commited to SVN, thanks ! Daniel