From f1bdf1d5189e272341ac1893244eda31ec1cc87d Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Thu, 22 Jul 2004 10:53:26 +0000 Subject: #include is required at least on HP-UX and IRIX. And what's with HP-UX offering 14 for NAME_MAX? --- crypto/LPdir_unix.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crypto/LPdir_unix.c') diff --git a/crypto/LPdir_unix.c b/crypto/LPdir_unix.c index 7298a23ae6..d207a71911 100644 --- a/crypto/LPdir_unix.c +++ b/crypto/LPdir_unix.c @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -35,6 +36,12 @@ #include "LPdir.h" #endif +#if defined(NAME_MAX) && NAME_MAX<255 +/* HP-UX offers 14 for NAME_MAX, which is far from enough */ +# undef NAME_MAX +# define NAME_MAX 255 +#endif + struct LP_dir_context_st { DIR *dir; -- cgit v1.2.3