[PATCH:libFS] Add AC_SYSTEM_EXTENSIONS to expose non-standard extensions

Daniel Stone daniel at fooishbar.org
Mon Dec 30 08:26:44 PST 2013


All
Reviewed-by: Daniel Stone <daniel at fooishbar.org>

On 27 December 2013 19:11, Alan Coopersmith <alan.coopersmith at oracle.com> wrote:
> Required on Solaris to expose fd_mask in <sys/select.h> now that
> xtrans 1.3 defines _XOPEN_SOURCE to 600 on Solaris, since fd_mask
> is not defined in that version of the XPG standards.
>
> Fixes build failure:
> ../../src/FSConnServ.c: In function '_FSWaitForWritable':
> ../../src/FSConnServ.c:166:6: error: 'fd_mask' undeclared (first use in this function)
> ../../src/FSConnServ.c:166:6: note: each undeclared identifier is reported only once for each function it appears in
>
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
>  configure.ac |    5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index b00749f..bcc4187 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -30,6 +30,11 @@ AC_CONFIG_HEADERS([config.h])
>  # Initialize Automake
>  AM_INIT_AUTOMAKE([foreign dist-bzip2])
>
> +# Set common system defines for POSIX extensions, such as _GNU_SOURCE
> +# Must be called before any macros that run the compiler (like
> +# AC_PROG_LIBTOOL) to avoid autoconf errors.
> +AC_USE_SYSTEM_EXTENSIONS
> +
>  # Initialize libtool
>  AC_PROG_LIBTOOL
>
> --
> 1.7.9.2
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list