From d48fdde3704f453014404fca321e08238dc4acc4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 10 Sep 2011 13:48:34 +0200 Subject: stop declariong our own dirname prototype Signed-off-by: Denys Vlasenko --- include/libbb.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index f60f4278b..d0c7ace22 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -32,6 +32,11 @@ #include #include #include +/* There are two incompatible basename's, let not use them! */ +/* See the dirname/basename man page for details */ +#include /* dirname,basename */ +#undef basename +#define basename dont_use_basename #include #include #include @@ -133,12 +138,6 @@ int vdprintf(int d, const char *format, va_list ap); #endif /* klogctl is in libc's klog.h, but we cheat and not #include that */ int klogctl(int type, char *b, int len); -/* This is declared here rather than #including in order to avoid - * confusing the two versions of basename. See the dirname/basename man page - * for details. */ -#if !defined __FreeBSD__ -char *dirname(char *path); -#endif #ifndef PATH_MAX # define PATH_MAX 256 #endif -- cgit v1.2.3