Check for defines the right way
authorWouter Verhelst <w@uter.be>
Tue, 29 Nov 2011 15:58:02 +0000 (16:58 +0100)
committerWouter Verhelst <w@uter.be>
Tue, 29 Nov 2011 15:58:02 +0000 (16:58 +0100)
I keep forgetting that autoconf says '#define FOO 0' rather than '#undef
FOO'...

nbd-server.c

index e894f4c..4bbf413 100644 (file)
@@ -83,7 +83,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
-#ifdef HAVE_FALLOC_PH
+#if HAVE_FALLOC_PH
 #include <linux/falloc.h>
 #endif
 #include <arpa/inet.h>