X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=binutils%2Fsysdep.h;h=e573637b8c72563836d063d33af672fdd09daeb1;hb=223be012f91d45bdf6d820f1bde5323b4f625177;hp=9627b46d459c479c0195c61a1f37e5db36d58982;hpb=a541e7f6cfe30a81bea0f98333420d243a969dfb;p=pf3gnuchains%2Fpf3gnuchains4x.git diff --git a/binutils/sysdep.h b/binutils/sysdep.h index 9627b46d45..e573637b8c 100644 --- a/binutils/sysdep.h +++ b/binutils/sysdep.h @@ -1,12 +1,13 @@ /* sysdep.h -- handle host dependencies for binutils Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. + 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009 + Free Software Foundation, Inc. This file is part of GNU Binutils. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -21,12 +22,12 @@ #ifndef _BIN_SYSDEP_H #define _BIN_SYSDEP_H +#include "alloca-conf.h" #include "ansidecl.h" #include #include #include "bfdver.h" -#include "config.h" #include @@ -68,6 +69,8 @@ extern char *strrchr (); #endif #endif +#include "binary-io.h" + #if !HAVE_DECL_STPCPY extern char *stpcpy (char *, const char *); #endif @@ -120,23 +123,6 @@ extern int vsnprintf(char *, size_t, const char *, va_list); #define SEEK_END 2 #endif -#if defined(__GNUC__) && !defined(C_ALLOCA) -# undef alloca -# define alloca __builtin_alloca -#else -# if defined(HAVE_ALLOCA_H) && !defined(C_ALLOCA) -# include -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -# if !defined (__STDC__) && !defined (__hpux) -char *alloca (); -# else -void *alloca (); -# endif /* __STDC__, __hpux */ -# endif /* alloca */ -# endif /* HAVE_ALLOCA_H */ -#endif - #ifdef HAVE_LOCALE_H # ifndef ENABLE_NLS /* The Solaris version of locale.h always includes libintl.h. If we have @@ -171,4 +157,23 @@ void *alloca (); /* Used by ar.c and objcopy.c. */ #define BUFSIZE 8192 +/* For PATH_MAX. */ +#ifdef HAVE_LIMITS_H +#include +#endif + +#ifndef PATH_MAX +/* For MAXPATHLEN. */ +# ifdef HAVE_SYS_PARAM_H +# include +# endif +# ifndef PATH_MAX +# ifdef MAXPATHLEN +# define PATH_MAX MAXPATHLEN +# else +# define PATH_MAX 1024 +# endif +# endif +#endif + #endif /* _BIN_SYSDEP_H */