Fix configure test for PBKDF2 in nettle
authorSteven Luo <steven+qemu@steven676.net>
Fri, 27 May 2016 04:53:13 +0000 (21:53 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:23 +0000 (18:19 +0300)
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: qemu-trivial@nongnu.org
Cc: qemu-stable@nongnu.org
Signed-off-by: Steven Luo <steven+qemu@steven676.net>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
configure

index 2d86e71efc19a81f8d93ec22a79fb0932a39e948..4627d2c1eb0c4bdf954b1024134ae586f58f56d0 100755 (executable)
--- a/configure
+++ b/configure
@@ -2344,6 +2344,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);