From b1cb8de3858b4fb6878f3e10e7b749ef55b2574c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 10 Apr 2015 13:06:43 +0200 Subject: [PATCH] cmake: Check for sys/param.h header file Signed-off-by: Andreas Schneider --- ConfigureChecks.cmake | 1 + src/external/bcrypt_pbkdf.c | 2 ++ 2 files changed, 3 insertions(+) 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 #include +#ifdef HAVE_SYS_PARAM_H #include +#endif #include "libssh/blf.h" #include "libssh/pki_priv.h"