* 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:
parent
a36c7f2ce5
commit
9e48f9ca32
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 ();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue