From: Denis Vlasenko Date: Wed, 13 Feb 2008 17:06:53 +0000 (-0000) Subject: tar: move FNM_LEADING_DIR #define to tar.c - no other users. X-Git-Tag: 1_10_0~180 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=87cf2ee8abec24e6399653e4856ab3543e7aadf7;p=oweals%2Fbusybox.git tar: move FNM_LEADING_DIR #define to tar.c - no other users. Closes bug 1332. --- diff --git a/archival/tar.c b/archival/tar.c index 64975c428..6b3738365 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -28,6 +28,11 @@ #include "libbb.h" #include "unarchive.h" +/* FIXME: Stop using this non-standard feature */ +#ifndef FNM_LEADING_DIR +#define FNM_LEADING_DIR 0 +#endif + #define block_buf bb_common_bufsiz1 #if ENABLE_FEATURE_TAR_CREATE diff --git a/include/platform.h b/include/platform.h index 9acba63e0..bfe631506 100644 --- a/include/platform.h +++ b/include/platform.h @@ -268,12 +268,6 @@ static ALWAYS_INLINE char* strchrnul(const char *s, char c) # define lchown chown #endif -/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ -/* FIXME: fix tar.c! */ -#ifndef FNM_LEADING_DIR -#define FNM_LEADING_DIR 0 -#endif - #if (defined __digital__ && defined __unix__) #include #define HAVE_STANDARDS_H