]> git.ozlabs.org Git - ccan/commitdiff
failtest: include config.h first
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:22 +0000 (22:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:22 +0000 (22:12 +1030)
It's now important, since it defines _GNU_SOURCE.

ccan/failtest/failtest.h
ccan/failtest/failtest_override.h

index 1aa921813bf7af6c433ab1f6e46ebfe6032b91b7..4df286241d0ef35f8a271251861ae7d0f2c11ac7 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef CCAN_FAILTEST_H
 #define CCAN_FAILTEST_H
+#include "config.h"
 #include <sys/types.h>
 #include <stdbool.h>
 #include <fcntl.h>
index a97d4e1723654fc5c5efa8e3b15491446a3e1c7e..cfc180022643e18ae5ed50f537db550ba79caebc 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef CCAN_FAILTEST_OVERRIDE_H
 #define CCAN_FAILTEST_OVERRIDE_H
 /* This file is included before the source file to test. */
+#include "config.h"
 
 /* Replacement of allocators. */
 #include <stdlib.h>