Not all platforms have _D_EXACT_NAMLEN.
* lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2014-04-09 Eric Blake <eblake@redhat.com>
+
+ fts: avoid unnecessary strlen calls
+ * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
+
2014-04-09 Paul Eggert <eggert@cs.ucla.edu>
fts: avoid unnecessary strlen calls
#endif
#include <dirent.h>
+#ifndef _D_EXACT_NAMLEN
+# define _D_EXACT_NAMLEN(dirent) strlen ((dirent)->d_name)
+#endif
#if HAVE_STRUCT_DIRENT_D_TYPE
/* True if the type of the directory entry D is known. */