From: Sadrul Habib Chowdhury Date: Sat, 7 Feb 2009 01:14:24 +0000 (-0500) Subject: Make sure NAME_MAX is defined. X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/49c9d58217621434c04d670b4037bb3af7b0ec17 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. --- 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