diff options
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/memcmp.c | 7 | ||||
-rw-r--r-- | sysdeps/generic/strtok_r.c | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/generic/memcmp.c b/sysdeps/generic/memcmp.c index 213ccc07de..033ac19504 100644 --- a/sysdeps/generic/memcmp.c +++ b/sysdeps/generic/memcmp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1993, 1995, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Torbjorn Granlund (tege@sics.se). @@ -47,6 +47,11 @@ #ifdef _LIBC # include <memcopy.h> +# include <endian.h> + +# if __BYTE_ORDER == __BIG_ENDIAN +# define WORDS_BIGENDIAN +# endif #else /* Not in the GNU C library. */ diff --git a/sysdeps/generic/strtok_r.c b/sysdeps/generic/strtok_r.c index 26d7da5176..3105e6a568 100644 --- a/sysdeps/generic/strtok_r.c +++ b/sysdeps/generic/strtok_r.c @@ -20,6 +20,7 @@ #include <string.h> #undef strtok_r +#undef __strtok_r /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as |