This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch for Darwin
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Marcin Dalecki <martin at dalecki dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 10 Apr 2005 16:32:47 -0700
- Subject: Patch for Darwin
- References: <20050410174320.GA29704@lucon.org> <1156950288b3ac5c15e40e805766fe5e@dalecki.de> <20050410223022.GA1400@lucon.org> <0b413afb0df031337779edb8caa60308@dalecki.de>
On Mon, Apr 11, 2005 at 01:25:54AM +0200, Marcin Dalecki wrote:
>
> I have to thank you. BTW the attached patch is fixing the compilation
> inside
> a cross build environment for Darwin.
I am forwarding your patch to the binutils mailing list.
>
> Another question: Would you contemplate including patches for
> configuration
> of a uclibc based target?
>
>
Please send them to the binutils mailing list.
H.J.
----
diff -ur binutils-2.16.90.0.1/include/libiberty.h binutils-2.16.90.0.1-new/include/libiberty.h
--- binutils-2.16.90.0.1/include/libiberty.h Sat Apr 9 21:03:16 2005
+++ binutils-2.16.90.0.1-new/include/libiberty.h Mon Apr 11 00:28:29 2005
@@ -74,7 +74,7 @@
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 (__MINGW32__) || defined (HAVE_DECL_BASENAME)
+#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (__APPLE__) || defined (HAVE_DECL_BASENAME)
extern char *basename (const char *);
#else
extern char *basename ();