From de699accf6804e8b1d8042b46c85500ee8c672c6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 31 Dec 2014 16:22:31 -0600 Subject: When you include the posix header libgen.h, glibc #defines basename to some random other symbol name (because gnu) and this screws up nontrivial macro expansions of NEWTOY(basename), so work around it in portability.h. --- toys/posix/dirname.c | 1 + 1 file changed, 1 insertion(+) (limited to 'toys/posix/dirname.c') diff --git a/toys/posix/dirname.c b/toys/posix/dirname.c index 06470ad8..7f51e9f0 100644 --- a/toys/posix/dirname.c +++ b/toys/posix/dirname.c @@ -16,6 +16,7 @@ config DIRNAME */ #include "toys.h" +#include void dirname_main(void) { -- cgit v1.2.3