#ifndef CCAN_TOOLS_H
#define CCAN_TOOLS_H
-#include <stdbool.h>
-#include <ccan/compiler/compiler.h>
#include "config.h"
+#include <ccan/compiler/compiler.h>
+#include <ccan/rbuf/rbuf.h>
+#include <stdlib.h>
+#include <stdbool.h>
#ifndef CCAN_COMPILER
#define CCAN_COMPILER "cc"
const char *temp_dir(const void *ctx);
bool move_file(const char *oldname, const char *newname);
+void *do_talloc_realloc(void *p, size_t size);
+void *talloc_grab_file(const void *ctx, const char *filename, size_t *size);
+
/* From compile.c.
*
* These all compile into a temporary dir, and return the filename.