]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Testsuite #include fixes.
authorThomas Schwinge <thomas@schwinge.name>
Mon, 2 Apr 2012 20:31:32 +0000 (22:31 +0200)
committerThomas Schwinge <thomas@schwinge.name>
Mon, 2 Apr 2012 20:31:32 +0000 (22:31 +0200)
ChangeLog
string/test-memcmp.c
string/test-strcmp.c
string/test-string.h
time/tst-mktime2.c

index ebb70425fab4e026e548e0056b72e4827f3889e5..ca85e54e2ac0623c3b96cd46749c10fc0dadf426 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
 
+       * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
+       CHAR_MAX.
+       * string/test-strcmp.c [! WIDE]: Likewise.
+       * time/tst-mktime2.c: Likewise for INT_MAX.
+       * string/test-string.h: #include <sys/param.h> for MIN.
+
        * csu/init-first.c (__libc_init_first): Call __ctype_init.
        * sysdeps/i386/init-first.c (init): Likewise.
        * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
index 2e61f597339e52e0247003a3f0cbf421f8c99ec0..69076d00beb8849b8685c6a064b313059c3fc98a 100644 (file)
@@ -1,5 +1,5 @@
 /* Test and measure memcmp functions.
-   Copyright (C) 1999, 2002, 2003, 2005, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Jakub Jelinek <jakub@redhat.com>, 1999.
    Added wmemcmp support by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>, 2011.
@@ -44,6 +44,8 @@ simple_wmemcmp (const wchar_t *s1, const wchar_t *s2, size_t n)
   return ret;
 }
 #else
+# include <limits.h>
+
 # define MEMCMP memcmp
 # define MEMCPY memcpy
 # define SIMPLE_MEMCMP simple_memcmp
index 85df6dcd48719be0fe70f18fab08e1bcb238bd0c..000c51091c6c22678c80023aa60afb110dd41f37 100644 (file)
@@ -1,5 +1,5 @@
 /* Test and measure strcmp and wcscmp functions.
-   Copyright (C) 1999, 2002, 2003, 2005, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Jakub Jelinek <jakub@redhat.com>, 1999.
    Added wcscmp support by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>, 2011.
@@ -80,6 +80,8 @@ stupid_wcscmp (const wchar_t *s1, const wchar_t *s2)
 }
 
 #else
+# include <limits.h>
+
 # define L(str) str
 # define STRCMP strcmp
 # define STRCPY strcpy
index 40fec18e32d1c28b33f68634c9f7afbf134da9db..c94d822b33fb3bfe32c1b43b0d750931c27432f2 100644 (file)
@@ -1,5 +1,5 @@
 /* Test and measure string and memory functions.
-   Copyright (C) 1999, 2002, 2004, 2008, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Jakub Jelinek <jakub@redhat.com>, 1999.
 
@@ -44,6 +44,7 @@ extern impl_t __start_impls[], __stop_impls[];
 #include <stdlib.h>
 #include <string.h>
 #include <sys/mman.h>
+#include <sys/param.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <error.h>
index 0e4fd1e786392aa9b94458020a0fa94468cd31f3..bc7cc5818b23b3c8a380a6c11314435851ad8d8d 100644 (file)
@@ -1,4 +1,6 @@
 /* Test program from Paul Eggert and Tony Leneis.  */
+
+#include <limits.h>
 #include <time.h>
 #include <stdlib.h>
 #include <unistd.h>