[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] idcache patch to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] idcache patch to assume C89 or better |
Date: |
09 Sep 2003 12:47:28 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* lib/idcache.c: Include <string.h> unconditionally.
* m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
or for string.h.
Index: lib/idcache.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/idcache.c,v
retrieving revision 1.10
diff -p -u -r1.10 idcache.c
--- lib/idcache.c 14 Aug 2003 23:03:13 -0000 1.10
+++ lib/idcache.c 9 Sep 2003 19:44:13 -0000
@@ -21,15 +21,10 @@
#endif
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
-
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
#if HAVE_UNISTD_H
# include <unistd.h>
Index: m4/idcache.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/idcache.m4,v
retrieving revision 1.1
diff -p -u -r1.1 idcache.m4
--- m4/idcache.m4 31 Dec 2002 13:42:07 -0000 1.1
+++ m4/idcache.m4 9 Sep 2003 19:44:13 -0000
@@ -1,5 +1,5 @@
-# idcache.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# idcache.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
@@ -9,6 +9,5 @@ dnl the same distribution terms as the r
AC_DEFUN([gl_IDCACHE],
[
dnl Prerequisites of lib/idcache.c.
- AC_REQUIRE([AC_HEADER_STDC])
- AC_CHECK_HEADERS_ONCE(string.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] idcache patch to assume C89 or better,
Paul Eggert <=