diff --git a/scsh/syscalls1.c b/scsh/syscalls1.c index f4550ee..fa9203f 100644 --- a/scsh/syscalls1.c +++ b/scsh/syscalls1.c @@ -178,11 +178,13 @@ int set_cloexec(int fd, int val) /* Posix rules: If PATH_MAX is defined, it's the length of longest path. ** Otherwise, _POSIX_PATH_MAX = 255, and is a lower bound on said length. +** I'm writing out 255 as a literal because HP-UX isn't finding +** _POSIX_PATH_MAX. */ #ifdef PATH_MAX #define scsh_path_max (PATH_MAX) #else -#define scsh_path_max (_POSIX_PATH_MAX) +#define scsh_path_max (255) #endif /* Simple-minded POSIX version. */