diff options
Diffstat (limited to 'ld/sysdep.h')
-rw-r--r-- | ld/sysdep.h | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/ld/sysdep.h b/ld/sysdep.h index 27bce0a..a80ac13 100644 --- a/ld/sysdep.h +++ b/ld/sysdep.h @@ -28,30 +28,15 @@ #include "config.h" #include <stdio.h> +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> -#include <sys/stat.h> -#include <stdarg.h> - -#ifdef STRING_WITH_STRINGS -#include <string.h> -#include <strings.h> -#else -#ifdef HAVE_STRING_H -#include <string.h> -#else -#ifdef HAVE_STRINGS_H -#include <strings.h> -#else -extern char *strchr (); -extern char *strrchr (); -#endif #endif +#ifdef HAVE_SYS_STAT_H +#include <sys/stat.h> #endif - -#ifdef HAVE_STDLIB_H #include <stdlib.h> -#endif - +#include <string.h> +#include <stdarg.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif @@ -107,18 +92,6 @@ extern char *strrchr (); #define SEEK_END 2 #endif -#if !HAVE_DECL_STRSTR -extern char *strstr (); -#endif - -#if !HAVE_DECL_FREE -extern void free (); -#endif - -#if !HAVE_DECL_GETENV -extern char *getenv (); -#endif - #if !HAVE_DECL_ENVIRON extern char **environ; #endif |