bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] strpbrk patch to assume C89 or better


From: Bruno Haible
Subject: [Bug-gnulib] strpbrk patch to assume C89 or better
Date: Wed, 10 Sep 2003 16:08:59 +0200
User-agent: KMail/1.5

I installed this patch.

        * lib/strpbrk.c: Include <string.h> unconditionally.
        * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.

*** lib/strpbrk.c       15 Nov 2002 17:36:03 -0000      1.5
--- lib/strpbrk.c       10 Sep 2003 13:47:01 -0000
***************
*** 1,4 ****
! /* Copyright (C) 1991, 1994, 2000, 2002 Free Software Foundation, Inc.
     NOTE: The canonical source of this file is maintained with the GNU C 
Library.
     Bugs can be reported to address@hidden
  
--- 1,4 ----
! /* Copyright (C) 1991, 1994, 2000, 2002-2003 Free Software Foundation, Inc.
     NOTE: The canonical source of this file is maintained with the GNU C 
Library.
     Bugs can be reported to address@hidden
  
***************
*** 21,30 ****
  #endif
  
  #include <stddef.h>
! 
! #if defined _LIBC || HAVE_STRING_H
! # include <string.h>
! #endif
  
  #undef strpbrk
  
--- 21,27 ----
  #endif
  
  #include <stddef.h>
! #include <string.h>
  
  #undef strpbrk
  
*** m4/strpbrk.m4       31 Dec 2002 13:42:07 -0000      1.1
--- m4/strpbrk.m4       10 Sep 2003 13:47:02 -0000
***************
*** 1,5 ****
! # strpbrk.m4 serial 1
! dnl Copyright (C) 2002 Free Software Foundation, Inc.
  dnl This file is free software, distributed under the terms of the GNU
  dnl General Public License.  As a special exception to the GNU General
  dnl Public License, this file may be distributed as part of a program
--- 1,5 ----
! # strpbrk.m4 serial 2
! dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
  dnl This file is free software, distributed under the terms of the GNU
  dnl General Public License.  As a special exception to the GNU General
  dnl Public License, this file may be distributed as part of a program
***************
*** 15,20 ****
  ])
  
  # Prerequisites of lib/strpbrk.c.
! AC_DEFUN([gl_PREREQ_STRPBRK], [
!   AC_CHECK_HEADERS_ONCE(string.h)
! ])
--- 15,18 ----
  ])
  
  # Prerequisites of lib/strpbrk.c.
! AC_DEFUN([gl_PREREQ_STRPBRK], [:])





reply via email to

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