add limits.h shim for defining PATH_MAX on HP-UX
This commit is contained in:
parent
448645d479
commit
1dd79f5d8f
@ -8,6 +8,7 @@ noinst_HEADERS = pqueue.h
|
||||
noinst_HEADERS += compat/dirent.h
|
||||
noinst_HEADERS += compat/dirent_msvc.h
|
||||
noinst_HEADERS += compat/err.h
|
||||
noinst_HEADERS += compat/limits.h
|
||||
noinst_HEADERS += compat/netdb.h
|
||||
noinst_HEADERS += compat/poll.h
|
||||
noinst_HEADERS += compat/readpassphrase.h
|
||||
|
26
include/compat/limits.h
Normal file
26
include/compat/limits.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Public domain
|
||||
* limits.h compatibility shim
|
||||
*/
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_LIMITS_H
|
||||
#define LIBCRYPTOCOMPAT_LIMITS_H
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if _MSC_VER >= 1900
|
||||
#include <../ucrt/limits.h>
|
||||
#else
|
||||
#include <../include/limits.h>
|
||||
#endif
|
||||
#else
|
||||
#include_next <limits.h>
|
||||
#endif
|
||||
|
||||
#ifdef __hpux
|
||||
#include <sys/param.h>
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX MAXPATHLEN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user