bug-gnulib
[Top][All Lists]
Advanced

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

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


From: Paul Eggert
Subject: [Bug-gnulib] getugroups patch to assume C89 or better
Date: 09 Sep 2003 11:44:41 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I installed this:

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

        * lib/getugroups.c: Include <string.h> unconditionally.
        * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
        or for string.h.

Index: lib/getugroups.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getugroups.c,v
retrieving revision 1.11
diff -p -u -r1.11 getugroups.c
--- lib/getugroups.c    4 Jun 2000 06:47:31 -0000       1.11
+++ lib/getugroups.c    9 Sep 2003 18:40:08 -0000
@@ -1,5 +1,5 @@
 /* getugroups.c -- return a list of the groups a user is in
-   Copyright (C) 1990, 1991, 1998, 1999, 2000 Free Software Foundation.
+   Copyright (C) 1990, 1991, 1998, 1999, 2000, 2003 Free Software Foundation.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -35,11 +35,7 @@
    You lose!  */
 struct group *getgrent ();
 
-#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <string.h>
 
 #define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
 
Index: m4/getugroups.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getugroups.m4,v
retrieving revision 1.1
diff -p -u -r1.1 getugroups.m4
--- m4/getugroups.m4    31 Dec 2002 13:42:07 -0000      1.1
+++ m4/getugroups.m4    9 Sep 2003 18:40:08 -0000
@@ -1,5 +1,5 @@
-# getugroups.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# getugroups.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,7 +9,6 @@ dnl the same distribution terms as the r
 AC_DEFUN([gl_GETUGROUPS],
 [
   dnl Prerequisites of lib/getugroups.c.
-  AC_REQUIRE([AC_HEADER_STDC])
-  AC_CHECK_HEADERS_ONCE(string.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_TYPE_GETGROUPS
 ])




reply via email to

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