xf86-video-intel: configure.ac

Chris Wilson ickle at kemper.freedesktop.org
Thu Mar 24 12:32:10 UTC 2016


 configure.ac |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 4e108afe55f6b13aa946d1252ff0b828929245b3
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Mar 24 12:28:59 2016 +0000

    Revert "configure: Remove test for strlcat"
    
    This reverts commit e4e469a0ede6974e1f916843f9317244516f7674.
    
    It looks like we get to choose between breaking the clang build or the
    gcc build. With gcc, we need to ensure that enter xorg/os.h with the
    right set of HAVE_STRNDUP et al guards, e.g.
    
    In file included from /usr/include/string.h:630:0,
                     from /usr/include/xorg/os.h:53,
                     from /usr/include/xorg/misc.h:116,
                     from fd.c:34:
    /usr/include/xorg/os.h:590:1: error: expected identifier or '(' before '__extension__'
     strndup(const char *str, size_t n);
    
    Reported-by: Arkadiusz Miskiewicz <arekm at maven.pl>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/configure.ac b/configure.ac
index b121515..c18ad96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,9 @@ AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
 AC_SYS_LARGEFILE
 
+# Check for common libc routines redefined by os.h
+AC_CHECK_FUNCS([strlcpy strlcat strndup], [], [])
+
 # Platform specific settings
 case $host_os in
   *linux*)


More information about the xorg-commit mailing list