aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-09-10 13:48:34 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-09-10 13:48:34 +0200
commitd48fdde3704f453014404fca321e08238dc4acc4 (patch)
tree177424004dee8a194bfbdb354b69ce4f714c3fc4
parent522041ee7b10ac544b90c6a8d1d4fbf8a5d39c6d (diff)
downloadbusybox-w32-d48fdde3704f453014404fca321e08238dc4acc4.tar.gz
busybox-w32-d48fdde3704f453014404fca321e08238dc4acc4.tar.bz2
busybox-w32-d48fdde3704f453014404fca321e08238dc4acc4.zip
stop declariong our own dirname prototype
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--include/libbb.h11
-rw-r--r--modutils/modutils-24.c1
2 files changed, 5 insertions, 7 deletions
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 @@
32#include <stdarg.h> 32#include <stdarg.h>
33#include <stddef.h> 33#include <stddef.h>
34#include <string.h> 34#include <string.h>
35/* There are two incompatible basename's, let not use them! */
36/* See the dirname/basename man page for details */
37#include <libgen.h> /* dirname,basename */
38#undef basename
39#define basename dont_use_basename
35#include <sys/poll.h> 40#include <sys/poll.h>
36#include <sys/ioctl.h> 41#include <sys/ioctl.h>
37#include <sys/mman.h> 42#include <sys/mman.h>
@@ -133,12 +138,6 @@ int vdprintf(int d, const char *format, va_list ap);
133#endif 138#endif
134/* klogctl is in libc's klog.h, but we cheat and not #include that */ 139/* klogctl is in libc's klog.h, but we cheat and not #include that */
135int klogctl(int type, char *b, int len); 140int klogctl(int type, char *b, int len);
136/* This is declared here rather than #including <libgen.h> in order to avoid
137 * confusing the two versions of basename. See the dirname/basename man page
138 * for details. */
139#if !defined __FreeBSD__
140char *dirname(char *path);
141#endif
142#ifndef PATH_MAX 141#ifndef PATH_MAX
143# define PATH_MAX 256 142# define PATH_MAX 256
144#endif 143#endif
diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c
index bbc54e316..12cb75c54 100644
--- a/modutils/modutils-24.c
+++ b/modutils/modutils-24.c
@@ -60,7 +60,6 @@
60 60
61#include "libbb.h" 61#include "libbb.h"
62#include "modutils.h" 62#include "modutils.h"
63#include <libgen.h>
64#include <sys/utsname.h> 63#include <sys/utsname.h>
65 64
66#if ENABLE_FEATURE_INSMOD_LOADINKMEM 65#if ENABLE_FEATURE_INSMOD_LOADINKMEM