| 1 | /* sysdep.h -- handle host dependencies for the GNU linker |
| 2 | Copyright (C) 1995 Free Software Foundation, Inc. |
| 3 | |
| 4 | This file is part of GLD, the Gnu Linker. |
| 5 | |
| 6 | GLD is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 2, or (at your option) |
| 9 | any later version. |
| 10 | |
| 11 | GLD is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along with GLD; see the file COPYING. If not, write to the Free |
| 18 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
| 19 | 02111-1307, USA. */ |
| 20 | |
| 21 | #ifndef LD_SYSDEP_H |
| 22 | #define LD_SYSDEP_H |
| 23 | |
| 24 | #include "config.h" |
| 25 | |
| 26 | #include <stdio.h> |
| 27 | #include <sys/types.h> |
| 28 | #include <sys/stat.h> |
| 29 | |
| 30 | #ifdef HAVE_STRING_H |
| 31 | #include <string.h> |
| 32 | #else |
| 33 | #ifdef HAVE_STRINGS_H |
| 34 | #include <strings.h> |
| 35 | #else |
| 36 | extern char *strchr (); |
| 37 | extern char *strrchr (); |
| 38 | extern char *strstr (); |
| 39 | #endif |
| 40 | #endif |
| 41 | |
| 42 | #ifdef HAVE_STDLIB_H |
| 43 | #include <stdlib.h> |
| 44 | #endif |
| 45 | |
| 46 | #ifdef HAVE_UNISTD_H |
| 47 | #include <unistd.h> |
| 48 | #endif |
| 49 | |
| 50 | #ifdef USE_BINARY_FOPEN |
| 51 | #include "fopen-bin.h" |
| 52 | #else |
| 53 | #include "fopen-same.h" |
| 54 | #endif |
| 55 | |
| 56 | #endif /* ! defined (LD_SYSDEP_H) */ |