From 9737893e0ab1706455b7934109634bee8d6a6d86 Mon Sep 17 00:00:00 2001 From: TLINDEN Date: Fri, 17 Apr 2015 14:14:38 +0200 Subject: [PATCH] fixed includes and function checks for scrypt --- configure.ac | 2 ++ include/pcp/config.h.in | 3 +++ libpcp/scrypt/crypto/scrypt_platform.h | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 3c1ed58..60af17e 100755 --- a/configure.ac +++ b/configure.ac @@ -77,7 +77,9 @@ AC_CHECK_FUNCS( \ malloc \ memset \ memcpy \ + mmap \ perror \ + posix_memalign \ setrlimit \ strnlen \ strnstr \ diff --git a/include/pcp/config.h.in b/include/pcp/config.h.in index e0196ac..3aaf7a8 100644 --- a/include/pcp/config.h.in +++ b/include/pcp/config.h.in @@ -82,6 +82,9 @@ /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET +/* Define to 1 if you have the `mmap' function. */ +#undef HAVE_MMAP + /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H diff --git a/libpcp/scrypt/crypto/scrypt_platform.h b/libpcp/scrypt/crypto/scrypt_platform.h index e69de29..75bd98f 100644 --- a/libpcp/scrypt/crypto/scrypt_platform.h +++ b/libpcp/scrypt/crypto/scrypt_platform.h @@ -0,0 +1,6 @@ +#ifndef _SCRYPT_PLATFORM_H_ +#define _SCRYPT_PLATFORM_H_ + +#include "platform.h" + +#endif /* !_SCRYPT_PLATFORM_H_ */