Make sure NAME_MAX is defined.
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Sat, 7 Feb 2009 01:14:24 +0000 (6 20:14 -0500)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Sat, 7 Feb 2009 01:14:24 +0000 (6 20:14 -0500)
A different fix for this, suggested by Emanuele Giaquinta, was to
 #undef NAME_MAX before #define-ing it, but somehow I like this better.

src/os.h

index be20572..2c1830d 100644 (file)
--- a/src/os.h
+++ b/src/os.h
@@ -41,7 +41,7 @@
 # include <signal.h>
 #endif /* __bsdi__ || __386BSD__ || _CX_UX || hpux || _IBMR2 || linux */
 
-#ifndef HAVE_LONG_FILE_NAMES
+#if !defined(HAVE_LONG_FILE_NAMES) && !defined(NAME_MAX)
 #define NAME_MAX 14
 #endif