X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_override.h;h=cfc180022643e18ae5ed50f537db550ba79caebc;hp=d5be2829d5e0dd418ae35eb4dd7b2f26543cccf7;hb=414da16fc2996a74f19f47ab7379ca61a723b425;hpb=e8f0484b7808efe03dbb573563b336d533487e29 diff --git a/ccan/failtest/failtest_override.h b/ccan/failtest/failtest_override.h index d5be2829..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 @@ -52,7 +53,7 @@ failtest_pwrite((fd), (buf), (count), (off), __FILE__, __LINE__) #undef close -#define close(fd) failtest_close(fd) +#define close(fd) failtest_close(fd, __FILE__, __LINE__) #undef fcntl #define fcntl(fd, ...) failtest_fcntl((fd), __FILE__, __LINE__, __VA_ARGS__)