bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] 'exclude' module patch to assume C89 or better


From: Paul Eggert
Subject: [Bug-gnulib] 'exclude' module patch to assume C89 or better
Date: Mon, 08 Sep 2003 20:18:49 -0700

I installed this:

2003-09-08  Paul Eggert  <address@hidden>

        * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
        * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.

Index: lib/exclude.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/exclude.c,v
retrieving revision 1.17
diff -p -u -r1.17 exclude.c
--- lib/exclude.c       13 Aug 2003 23:44:25 -0000      1.17
+++ lib/exclude.c       9 Sep 2003 03:12:18 -0000
@@ -33,15 +33,8 @@ extern int errno;
 #endif
 #include <stddef.h>
 #include <stdio.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#if HAVE_STRING_H
-# include <string.h>
-#endif
-#if HAVE_STRINGS_H
-# include <strings.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
 #if HAVE_INTTYPES_H
 # include <inttypes.h>
 #else
Index: m4/exclude.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/exclude.m4,v
retrieving revision 1.3
diff -p -u -r1.3 exclude.m4
--- m4/exclude.m4       13 Aug 2003 23:15:00 -0000      1.3
+++ m4/exclude.m4       9 Sep 2003 03:12:18 -0000
@@ -1,4 +1,4 @@
-# exclude.m4 serial 2
+# exclude.m4 serial 3
 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
@@ -11,6 +11,5 @@ AC_DEFUN([gl_EXCLUDE],
   dnl Prerequisites of lib/exclude.c.
   AC_REQUIRE([AC_C_INLINE])
   AC_REQUIRE([AC_HEADER_STDC])
-  AC_CHECK_HEADERS_ONCE(stdlib.h string.h strings.h)
   AC_CHECK_FUNCS_ONCE(isascii)
 ])




reply via email to

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