From 1232f3482b272fbe8986c9677b529ec7b6cb0183 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 24 Feb 2018 17:18:08 +0100 Subject: make: do not run stat twice for regular files when copying --- src/blogc-make/ctx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/blogc-make/ctx.h') diff --git a/src/blogc-make/ctx.h b/src/blogc-make/ctx.h index 1c9d8b0..3f70ead 100644 --- a/src/blogc-make/ctx.h +++ b/src/blogc-make/ctx.h @@ -9,6 +9,7 @@ #ifndef _MAKE_CTX_H #define _MAKE_CTX_H +#include #include #include #include "settings.h" @@ -63,7 +64,7 @@ typedef struct { bc_slist_t *copy_fctx; } bm_ctx_t; -bm_filectx_t* bm_filectx_new(bm_ctx_t *ctx, const char *filename); +bm_filectx_t* bm_filectx_new(bm_ctx_t *ctx, const char *filename, struct stat *st); bc_slist_t* bm_filectx_new_r(bc_slist_t *l, bm_ctx_t *ctx, const char *filename); bool bm_filectx_changed(bm_filectx_t *ctx, time_t *tv_sec, long *tv_nsec); void bm_filectx_reload(bm_filectx_t *ctx); -- cgit v1.2.3-18-g5258