Browse Source

failtest: include config.h first

It's now important, since it defines _GNU_SOURCE.
Rusty Russell 15 years ago
parent
commit
e50b1a0722
2 changed files with 2 additions and 0 deletions
  1. 1 0
      ccan/failtest/failtest.h
  2. 1 0
      ccan/failtest/failtest_override.h

+ 1 - 0
ccan/failtest/failtest.h

@@ -1,5 +1,6 @@
 #ifndef CCAN_FAILTEST_H
 #ifndef CCAN_FAILTEST_H
 #define CCAN_FAILTEST_H
 #define CCAN_FAILTEST_H
+#include "config.h"
 #include <sys/types.h>
 #include <sys/types.h>
 #include <stdbool.h>
 #include <stdbool.h>
 #include <fcntl.h>
 #include <fcntl.h>

+ 1 - 0
ccan/failtest/failtest_override.h

@@ -1,6 +1,7 @@
 #ifndef CCAN_FAILTEST_OVERRIDE_H
 #ifndef CCAN_FAILTEST_OVERRIDE_H
 #define CCAN_FAILTEST_OVERRIDE_H
 #define CCAN_FAILTEST_OVERRIDE_H
 /* This file is included before the source file to test. */
 /* This file is included before the source file to test. */
+#include "config.h"
 
 
 /* Replacement of allocators. */
 /* Replacement of allocators. */
 #include <stdlib.h>
 #include <stdlib.h>