diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-04-10 13:06:43 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-04-10 13:07:12 +0200 |
commit | b1cb8de3858b4fb6878f3e10e7b749ef55b2574c (patch) | |
tree | 2762f4998ca352d8d1755dd58523f9849bf2c820 | |
parent | 69c9cd029f487b682d82b82aa4e6833017387fcd (diff) | |
download | libssh-b1cb8de3858b4fb6878f3e10e7b749ef55b2574c.tar.gz libssh-b1cb8de3858b4fb6878f3e10e7b749ef55b2574c.tar.xz libssh-b1cb8de3858b4fb6878f3e10e7b749ef55b2574c.zip |
cmake: Check for sys/param.h header file
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | ConfigureChecks.cmake | 1 | ||||
-rw-r--r-- | src/external/bcrypt_pbkdf.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 902b4a31..c4bf6c28 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -54,6 +54,7 @@ check_include_file(unistd.h HAVE_UNISTD_H) check_include_file(util.h HAVE_UTIL_H) check_include_file(libutil.h HAVE_LIBUTIL_H) check_include_file(sys/time.h HAVE_SYS_TIME_H) +check_include_file(sys/param.h HAVE_SYS_PARAM_H) check_include_file(arpa/inet.h HAVE_ARPA_INET_H) if (WIN32) diff --git a/src/external/bcrypt_pbkdf.c b/src/external/bcrypt_pbkdf.c index 7dbcaca2..409265cb 100644 --- a/src/external/bcrypt_pbkdf.c +++ b/src/external/bcrypt_pbkdf.c @@ -23,7 +23,9 @@ #include "libssh/wrapper.h" #include <stdlib.h> #include <sys/types.h> +#ifdef HAVE_SYS_PARAM_H #include <sys/param.h> +#endif #include "libssh/blf.h" #include "libssh/pki_priv.h" |