From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 29 Feb 2012 13:51:31 -0500 Subject: [U-Boot] [PATCH] Avoid using GNU basename In-Reply-To: References: Message-ID: <201202291351.32613.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 28 February 2012 10:36:22 Keith Mok wrote: > There is no GNU basename support in MacOS. > Use generic POSIX basename defined in libgen.h instead. alternative: define a non-braindead version in compiler.h: static const char *_basename(const char *filename) { const char *p = strrchr(filename, '/'); return p ? p + 1 : filename; } /* Avoid issues with clobbering C library def */ #undef basename #define basename(x) _basename(x) -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: