X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2Fsysdep.h;h=b55a1c29518500735a040c1f90c4f179459140dd;hb=4bed253f22c9bb9b0823a78f310afeff4f25bb40;hp=05be952d1e1526f811145c49b6852e3475c31edf;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=binutils-gdb.git diff --git a/ld/sysdep.h b/ld/sysdep.h index 05be952d1e1..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-2015 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,20 +92,10 @@ 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 +#define POISON_BFD_BOOLEAN 1 + #endif /* ! defined (LD_SYSDEP_H) */