tar: move FNM_LEADING_DIR #define to tar.c - no other users.
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 13 Feb 2008 17:06:53 +0000 (17:06 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 13 Feb 2008 17:06:53 +0000 (17:06 -0000)
Closes bug 1332.

archival/tar.c
include/platform.h

index 64975c42851236bc141c0b8b34e573125ca66b4a..6b373836542bdd6d14fb9b0db93113166e9c4dce 100644 (file)
 #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
index 9acba63e0e1f3071fcdca65fb0885ebbb65cda6c..bfe631506894a42f94e8eaa7b86ac79cc312d0c5 100644 (file)
@@ -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 <standards.h>
 #define HAVE_STANDARDS_H