From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b69lz-0002pf-Pd for qemu-devel@nongnu.org; Fri, 27 May 2016 00:53:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b69lt-00006D-Nk for qemu-devel@nongnu.org; Fri, 27 May 2016 00:53:22 -0400 Received: from nm18-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.37]:54604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b69lt-00005v-G9 for qemu-devel@nongnu.org; Fri, 27 May 2016 00:53:17 -0400 From: Steven Luo Date: Thu, 26 May 2016 21:53:13 -0700 Message-Id: <1464324793-29101-1-git-send-email-steven@steven676.net> Subject: [Qemu-devel] [PATCH] Fix configure test for PBKDF2 in nettle List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Daniel P. Berrange" , qemu-trivial@nongnu.org, qemu-stable@nongnu.org From: Steven Luo 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 --- 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 #include int main(void) { pbkdf2_hmac_sha256(8, NULL, 1000, 8, NULL, 8, NULL); -- 2.1.4