mirror of
https://github.com/bebbo/amigaos-binutils-2.14.git
synced 2025-12-08 22:38:24 +00:00
* 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:
2
bfd/configure
vendored
2
bfd/configure
vendored
@ -3468,7 +3468,7 @@ bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\
|
|||||||
bfd_version_string="\"${VERSION}\""
|
bfd_version_string="\"${VERSION}\""
|
||||||
if test x${is_release} = x; then
|
if test x${is_release} = x; then
|
||||||
bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ changequote([,])dnl
|
|||||||
bfd_version_string="\"${VERSION}\""
|
bfd_version_string="\"${VERSION}\""
|
||||||
if test x${is_release} = x; then
|
if test x${is_release} = x; then
|
||||||
bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
|
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
|
fi
|
||||||
AC_SUBST(bfd_version)
|
AC_SUBST(bfd_version)
|
||||||
AC_SUBST(bfd_version_string)
|
AC_SUBST(bfd_version_string)
|
||||||
|
|||||||
@ -98,7 +98,11 @@ extern int errno;
|
|||||||
#define DATA_FLAGS (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS)
|
#define DATA_FLAGS (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS)
|
||||||
|
|
||||||
#ifdef HAVE_FOPEN64
|
#ifdef HAVE_FOPEN64
|
||||||
|
#if defined(__amigaos4__)
|
||||||
|
typedef _off64_t file_off;
|
||||||
|
#else
|
||||||
typedef off64_t file_off;
|
typedef off64_t file_off;
|
||||||
|
#endif
|
||||||
#define file_open(s,m) fopen64(s, m)
|
#define file_open(s,m) fopen64(s, m)
|
||||||
#else
|
#else
|
||||||
typedef off_t file_off;
|
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
|
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. */
|
is 1, we found it so don't provide any declaration at all. */
|
||||||
#if !HAVE_DECL_BASENAME
|
#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 *));
|
extern char *basename PARAMS ((const char *));
|
||||||
#else
|
#else
|
||||||
extern char *basename ();
|
extern char *basename ();
|
||||||
|
|||||||
@ -66,6 +66,12 @@ extern char *canonicalize_file_name (const char *);
|
|||||||
# endif
|
# endif
|
||||||
#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 *
|
char *
|
||||||
lrealpath (filename)
|
lrealpath (filename)
|
||||||
const char *filename;
|
const char *filename;
|
||||||
|
|||||||
Reference in New Issue
Block a user