aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/ccan/tap/tap.c2
-rw-r--r--core/ccan/tap/tap.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/core/ccan/tap/tap.c b/core/ccan/tap/tap.c
index bf8a276..2c465ab 100644
--- a/core/ccan/tap/tap.c
+++ b/core/ccan/tap/tap.c
@@ -32,6 +32,8 @@
#include "tap.h"
+void (*tap_fail_callback)(void) = NULL;
+
static int no_plan = 0;
static int skip_all = 0;
static int have_plan = 0;
diff --git a/core/ccan/tap/tap.h b/core/ccan/tap/tap.h
index 5b21ff7..22c245d 100644
--- a/core/ccan/tap/tap.h
+++ b/core/ccan/tap/tap.h
@@ -246,6 +246,6 @@ void plan_skip_all(const char *reason);
*
* This can be used to ease debugging, or exit on the first failure.
*/
-void (*tap_fail_callback)(void);
+extern void (*tap_fail_callback)(void);
#endif /* CCAN_TAP_H */