summaryrefslogtreecommitdiff
path: root/src/os.h
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2009-02-06 20:14:24 -0500
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2009-02-06 20:14:24 -0500
commit49c9d58217621434c04d670b4037bb3af7b0ec17 (patch)
treeaec86fd040c0c24c2f109c3f4ec44420a5b6c96b /src/os.h
parentf5ef12ef83f93b8325420aeff41134d971d1f779 (diff)
downloadscreen-49c9d58217621434c04d670b4037bb3af7b0ec17.tar.gz
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.
Diffstat (limited to 'src/os.h')
-rw-r--r--src/os.h2
1 files changed, 1 insertions, 1 deletions
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 <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