From: Steven Luo <[email protected]> On my Debian jessie system, including nettle/pbkdf2.h does not cause NULL to be defined, which causes the test to fail to compile. Include stddef.h to bring in a definition of NULL.
Cc: [email protected] Cc: [email protected] Signed-off-by: Steven Luo <[email protected]> --- I suppose this could also be fixed by defining NULL ourselves, or by replacing NULLs with 0s -- if one of those other approaches is preferred, let me know. configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index c37fc5f..0aae017 100755 --- a/configure +++ b/configure @@ -2342,6 +2342,7 @@ if test "$nettle" != "no"; then nettle="yes" cat > $TMPC << EOF +#include <stddef.h> #include <nettle/pbkdf2.h> int main(void) { pbkdf2_hmac_sha256(8, NULL, 1000, 8, NULL, 8, NULL); -- 2.1.4
