mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Testsuite #include fixes.
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
2012-04-02 Thomas Schwinge <thomas@codesourcery.com>
|
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.
|
* csu/init-first.c (__libc_init_first): Call __ctype_init.
|
||||||
* sysdeps/i386/init-first.c (init): Likewise.
|
* sysdeps/i386/init-first.c (init): Likewise.
|
||||||
* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
|
* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test and measure memcmp functions.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
||||||
Added wmemcmp support by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>, 2011.
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
# include <limits.h>
|
||||||
|
|
||||||
# define MEMCMP memcmp
|
# define MEMCMP memcmp
|
||||||
# define MEMCPY memcpy
|
# define MEMCPY memcpy
|
||||||
# define SIMPLE_MEMCMP simple_memcmp
|
# define SIMPLE_MEMCMP simple_memcmp
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test and measure strcmp and wcscmp functions.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
||||||
Added wcscmp support by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>, 2011.
|
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
|
#else
|
||||||
|
# include <limits.h>
|
||||||
|
|
||||||
# define L(str) str
|
# define L(str) str
|
||||||
# define STRCMP strcmp
|
# define STRCMP strcmp
|
||||||
# define STRCPY strcpy
|
# define STRCPY strcpy
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test and measure string and memory functions.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
||||||
|
|
||||||
@ -44,6 +44,7 @@ extern impl_t __start_impls[], __stop_impls[];
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <sys/param.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <error.h>
|
#include <error.h>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
/* Test program from Paul Eggert and Tony Leneis. */
|
/* Test program from Paul Eggert and Tony Leneis. */
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
Reference in New Issue
Block a user