From 49c9d58217621434c04d670b4037bb3af7b0ec17 Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Fri, 6 Feb 2009 20:14:24 -0500 Subject: [PATCH] Make sure NAME_MAX is defined. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.h b/src/os.h index be20572..2c1830d 100644 --- a/src/os.h +++ b/src/os.h @@ -41,7 +41,7 @@ # include #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 -- 2.11.4.GIT