bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] regex warnings on linux


From: Bruno Haible
Subject: Re: [bug-gnulib] regex warnings on linux
Date: Fri, 19 Aug 2005 13:30:40 +0200
User-agent: KMail/1.5

Sam Steingold wrote:
> fc4:
>
> In file included from regex.c:86:
> regcomp.c: In function 'regerror':
> regcomp.c:563: warning: implicit declaration of function 'mempcpy'
> regcomp.c:563: warning: incompatible implicit declaration of built-in 
> function ' mempcpy'
> regcomp.c: In function 'build_charclass':
> regcomp.c:3616: warning: implicit declaration of function 'isblank'

The appended patch should fix it. Thanks for the report.


diff -c -3 -r1.40 regex.m4
*** regex.m4    25 Jul 2005 19:28:26 -0000      1.40
--- regex.m4    19 Aug 2005 11:31:48 -0000
***************
*** 1,4 ****
! #serial 24
  
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
  # Software Foundation, Inc.
--- 1,4 ----
! #serial 25
  
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
  # Software Foundation, Inc.
***************
*** 125,130 ****
--- 125,131 ----
  # Prerequisites of lib/regex.c and lib/regex_internal.c.
  AC_DEFUN([gl_PREREQ_REGEX],
  [
+   AC_REQUIRE([AC_GNU_SOURCE])
    AC_REQUIRE([gl_C_RESTRICT])
    AC_REQUIRE([AM_LANGINFO_CODESET])
    AC_CHECK_HEADERS_ONCE([locale.h wchar.h wctype.h])





reply via email to

[Prev in Thread] Current Thread [Next in Thread]