aboutsummaryrefslogtreecommitdiffstats
path: root/cache_from_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'cache_from_tree.c')
-rw-r--r--cache_from_tree.c3
1 files changed, 2 insertions, 1 deletions
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 <ftw.h>
#include <stdio.h>
#include <string.h>
@@ -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))