X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2Fsysdep.h;h=b55a1c29518500735a040c1f90c4f179459140dd;hb=4bed253f22c9bb9b0823a78f310afeff4f25bb40;hp=27bce0adf38a137adb2077c82f197e8f55dcc450;hpb=f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc;p=binutils-gdb.git diff --git a/ld/sysdep.h b/ld/sysdep.h index 27bce0adf38..b55a1c29518 100644 --- a/ld/sysdep.h +++ b/ld/sysdep.h @@ -1,5 +1,5 @@ /* sysdep.h -- handle host dependencies for the GNU linker - Copyright (C) 1995-2021 Free Software Foundation, Inc. + Copyright (C) 1995-2022 Free Software Foundation, Inc. This file is part of the GNU Binutils. @@ -28,30 +28,15 @@ #include "config.h" #include +#ifdef HAVE_SYS_TYPES_H #include -#include -#include - -#ifdef STRING_WITH_STRINGS -#include -#include -#else -#ifdef HAVE_STRING_H -#include -#else -#ifdef HAVE_STRINGS_H -#include -#else -extern char *strchr (); -extern char *strrchr (); -#endif #endif +#ifdef HAVE_SYS_STAT_H +#include #endif - -#ifdef HAVE_STDLIB_H #include -#endif - +#include +#include #ifdef HAVE_UNISTD_H #include #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