summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenys Vlasenko2011-09-10 13:48:34 +0200
committerDenys Vlasenko2011-09-10 13:48:34 +0200
commitd48fdde3704f453014404fca321e08238dc4acc4 (patch)
tree177424004dee8a194bfbdb354b69ce4f714c3fc4 /include/libbb.h
parent522041ee7b10ac544b90c6a8d1d4fbf8a5d39c6d (diff)
downloadbusybox-d48fdde3704f453014404fca321e08238dc4acc4.zip
busybox-d48fdde3704f453014404fca321e08238dc4acc4.tar.gz
stop declariong our own dirname prototype
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h
index f60f427..d0c7ace 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -32,6 +32,11 @@
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
+/* There are two incompatible basename's, let not use them! */
+/* See the dirname/basename man page for details */
+#include <libgen.h> /* dirname,basename */
+#undef basename
+#define basename dont_use_basename
#include <sys/poll.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
@@ -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 <libgen.h> 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