bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] canon-host patch to assume C89 or better


From: Paul Eggert
Subject: [Bug-gnulib] canon-host patch to assume C89 or better
Date: 08 Sep 2003 16:21:59 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I installed this:

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

        * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
        * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.

Index: lib/canon-host.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/canon-host.c,v
retrieving revision 1.14
diff -p -u -r1.14 canon-host.c
--- lib/canon-host.c    17 Dec 2002 11:48:11 -0000      1.14
+++ lib/canon-host.c    8 Sep 2003 23:17:13 -0000
@@ -1,6 +1,6 @@
 /* Host name canonicalization
 
-   Copyright (C) 1995, 1999, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
 
    Written by Miles Bader <address@hidden>
 
@@ -26,12 +26,8 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#ifdef HAVE_STRING_H
-# include <string.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
 #ifdef HAVE_NETDB_H
 # include <netdb.h>
 #endif
Index: m4/canon-host.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/canon-host.m4,v
retrieving revision 1.3
diff -p -u -r1.3 canon-host.m4
--- m4/canon-host.m4    23 Jul 2003 11:08:01 -0000      1.3
+++ m4/canon-host.m4    8 Sep 2003 23:17:13 -0000
@@ -1,4 +1,4 @@
-# canon-host.m4 serial 2
+# canon-host.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
@@ -9,7 +9,7 @@ dnl the same distribution terms as the r
 AC_DEFUN([gl_CANON_HOST],
 [
   dnl Prerequisites of lib/canon-host.c.
-  AC_CHECK_HEADERS_ONCE(stdlib.h string.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CHECK_HEADERS(netdb.h sys/socket.h netinet/in.h arpa/inet.h)
 
   dnl Add any libraries as early as possible.




reply via email to

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