]> xenbits.xensource.com Git - libvirt.git/commitdiff
Update from gnulib
authorJim Meyering <meyering@redhat.com>
Tue, 29 Jan 2008 18:17:47 +0000 (18:17 +0000)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Jan 2008 18:17:47 +0000 (18:17 +0000)
* lib/poll.c: Update.
* lib/string.in.h: Update.
* m4/string_h.m4: Update.
* tests/test-getaddrinfo.c: Update.
* lib/Makefile.am: Regenerate.

ChangeLog
gnulib/lib/Makefile.am
gnulib/lib/poll.c
gnulib/lib/string.in.h
gnulib/m4/string_h.m4
gnulib/tests/test-getaddrinfo.c

index 85dcf561bb637e8d0034846240a623c292044523..202ca95fd124e683b2fbdfdca82517d0fd5e01cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 Tue Jan 29 18:39:25 CET 2008  Jim Meyering  <meyering@redhat.com>
 
+       Update from gnulib
+       * lib/poll.c: Update.
+       * lib/string.in.h: Update.
+       * m4/string_h.m4: Update.
+       * tests/test-getaddrinfo.c: Update.
+       * lib/Makefile.am: Regenerate.
+
        Enable the <config.h>-requiring test; fix violations
        Use <config.h>, not "config.h", per autoconf documentation.
        * Makefile.cfg (local-checks-to-skip) [sc_require_config_h]: Enable.
index e7a6edfd6c442de455de5ed65960d36ac042e971..64fc39873b2a2262c36551c165c8bab93f1a9784 100644 (file)
@@ -509,8 +509,10 @@ string.h: string.in.h
              -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \
              -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
              -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
+             -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
              -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
              -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
+             -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
              < $(srcdir)/string.in.h; \
        } > $@-t
index db7b517b2556366ab37b90cafed163f0292004ec..aa40d8cd71797dd743e9c2902b4f310af5bb0f74 100644 (file)
@@ -1,7 +1,7 @@
 /* Emulation for poll(2)
    Contributed by Paolo Bonzini.
 
-   Copyright 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc.
+   Copyright 2001, 2002, 2003, 2006, 2007, 2008 Free Software Foundation, Inc.
 
    This file is part of gnulib.
 
@@ -19,7 +19,7 @@
    with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#include "config.h"
+#include <config.h>
 
 #include <sys/types.h>
 #include "poll.h"
@@ -132,7 +132,7 @@ poll (pfd, nfd, timeout)
          maxfd = pfd[i].fd;
 
          /* Windows use a linear array of sockets (of size FD_SETSIZE). The
-            descriptor value is not used to address the array.  */ 
+            descriptor value is not used to address the array.  */
 #if defined __CYGWIN__ || (!defined _WIN32 && !defined __WIN32__)
          if (maxfd > FD_SETSIZE)
            {
index dbbe2fd7af5426bf0746a76d201c8a33b157d14e..b10a4914381959c6366feed2ec4b474753bb468a 100644 (file)
@@ -313,11 +313,15 @@ char *strstr (const char *haystack, const char *needle)
 
 /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive
    comparison.  */
-#if ! @HAVE_STRCASESTR@
+#if @GNULIB_STRCASESTR@
+# if @REPLACE_STRCASESTR@
+#  define strcasestr rpl_strcasestr
+# endif
+# if ! @HAVE_STRCASESTR@ || @REPLACE_STRCASESTR@
 extern char *strcasestr (const char *haystack, const char *needle)
   __attribute__ ((__pure__));
-#endif
-#if defined GNULIB_POSIXCHECK
+# endif
+#elif defined GNULIB_POSIXCHECK
 /* strcasestr() does not work with multibyte strings:
    It is a glibc extension, and glibc implements it only for unibyte
    locales.  */
@@ -542,7 +546,10 @@ extern char *strerror (int);
 #endif
 
 #if @GNULIB_STRSIGNAL@
-# if ! @HAVE_DECL_STRSIGNAL@
+# if @REPLACE_STRSIGNAL@
+#  define strsignal rpl_strsignal
+# endif
+# if ! @HAVE_DECL_STRSIGNAL@ || @REPLACE_STRSIGNAL@
 extern char *strsignal (int __sig);
 # endif
 #elif defined GNULIB_POSIXCHECK
index 69761d720d332ac94373a55e6783a30c90319723..766d7e984948bb6bf9cc80e18bbc01e18cd8f8ea 100644 (file)
@@ -5,7 +5,7 @@
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
-# serial 3
+# serial 4
 
 # Written by Paul Eggert.
 
@@ -80,6 +80,8 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
   HAVE_DECL_STRERROR=1;                AC_SUBST([HAVE_DECL_STRERROR])
   HAVE_DECL_STRSIGNAL=1;       AC_SUBST([HAVE_DECL_STRSIGNAL])
   REPLACE_STRERROR=0;          AC_SUBST([REPLACE_STRERROR])
+  REPLACE_STRSIGNAL=0;         AC_SUBST([REPLACE_STRSIGNAL])
   REPLACE_MEMMEM=0;            AC_SUBST([REPLACE_MEMMEM])
+  REPLACE_STRCASESTR=0;                AC_SUBST([REPLACE_STRCASESTR])
   REPLACE_STRSTR=0;            AC_SUBST([REPLACE_STRSTR])
 ])
index 7763f43f6c44c2b092cf875d39ab38dc1a0b7dc3..00a980b1bda2dc3e97e1d6406e89fbeb1b6c4913 100644 (file)
@@ -1,6 +1,6 @@
 /* Test the getaddrinfo module.
 
-   Copyright (C) 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
    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
@@ -17,7 +17,7 @@
 
 /* Written by Simon Josefsson.  */
 
-#include "config.h"
+#include <config.h>
 #include "getaddrinfo.h"
 #include "inet_ntop.h"
 #include <stdio.h>