From 3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Wed, 25 May 2022 18:20:38 -0400 Subject: Fix some portability issues --- cache_from_tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cache_from_tree.c') diff --git a/cache_from_tree.c b/cache_from_tree.c index 92a2210..90cafda 100644 --- a/cache_from_tree.c +++ b/cache_from_tree.c @@ -25,6 +25,7 @@ * SUCH DAMAGE. */ +#define _XOPEN_SOURCE 500 #include #include #include @@ -34,7 +35,7 @@ static struct trust_cache cache = {}; -int +static int tccallback(const char *path, const struct stat *sb, int typeflag, struct FTW *ftw) { if (!S_ISREG(sb->st_mode)) -- cgit v1.2.3