From: Rusty Russell Date: Thu, 17 Mar 2011 11:42:22 +0000 (+1030) Subject: failtest: include config.h first X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=e50b1a072279e2ecf461f379094ff1726a4c19e9 failtest: include config.h first It's now important, since it defines _GNU_SOURCE. --- diff --git a/ccan/failtest/failtest.h b/ccan/failtest/failtest.h index 1aa92181..4df28624 100644 --- a/ccan/failtest/failtest.h +++ b/ccan/failtest/failtest.h @@ -1,5 +1,6 @@ #ifndef CCAN_FAILTEST_H #define CCAN_FAILTEST_H +#include "config.h" #include #include #include diff --git a/ccan/failtest/failtest_override.h b/ccan/failtest/failtest_override.h index a97d4e17..cfc18002 100644 --- a/ccan/failtest/failtest_override.h +++ b/ccan/failtest/failtest_override.h @@ -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