* binutils: minor changes to make binutiles compile for a ppc-amigaos

hosted environment.
* gcc/gcc/config/rs6000/amigaos.c: fixed some compiler warnings
This commit is contained in:
Jens Maus 2008-02-24 13:48:21 +00:00
parent a36c7f2ce5
commit 9e48f9ca32
5 changed files with 13 additions and 3 deletions

2
bfd/configure vendored
View File

@ -3468,7 +3468,7 @@ bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\
bfd_version_string="\"${VERSION}\""
if test x${is_release} = x; then
bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
bfd_version_string="\"${VERSION} ${bfd_version_date} (AmigaOS build 20070520)\""
bfd_version_string="\"${VERSION} ${bfd_version_date} (AmigaOS build 20080224)\""
fi

View File

@ -18,7 +18,7 @@ changequote([,])dnl
bfd_version_string="\"${VERSION}\""
if test x${is_release} = x; then
bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
bfd_version_string="\"${VERSION} ${bfd_version_date} (AmigaOS build 20070520)\""
bfd_version_string="\"${VERSION} ${bfd_version_date} (AmigaOS build 20080224)\""
fi
AC_SUBST(bfd_version)
AC_SUBST(bfd_version_string)

View File

@ -98,7 +98,11 @@ extern int errno;
#define DATA_FLAGS (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS)
#ifdef HAVE_FOPEN64
#if defined(__amigaos4__)
typedef _off64_t file_off;
#else
typedef off64_t file_off;
#endif
#define file_open(s,m) fopen64(s, m)
#else
typedef off_t file_off;

View File

@ -74,7 +74,7 @@ extern char **dupargv PARAMS ((char **)) ATTRIBUTE_MALLOC;
to find the declaration so provide a fully prototyped one. If it
is 1, we found it so don't provide any declaration at all. */
#if !HAVE_DECL_BASENAME
#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME)
#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined(AMIGA) || defined (HAVE_DECL_BASENAME)
extern char *basename PARAMS ((const char *));
#else
extern char *basename ();

View File

@ -66,6 +66,12 @@ extern char *canonicalize_file_name (const char *);
# endif
#endif
/* OS4 does not have _PC_PATH_MAX so we use the
REALPATH_LIMIT method only */
#if defined(__amigaos4__)
#undef HAVE_REALPATH
#endif
char *
lrealpath (filename)
const char *filename;