aboutsummaryrefslogtreecommitdiffstats
path: root/cache_from_tree.c
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-05-25 18:20:38 -0400
committerCameron Katri <me@cameronkatri.com>2022-05-25 18:20:38 -0400
commit3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d (patch)
tree34b4c2f32dca91660db151412cd94ce5a4d58ece /cache_from_tree.c
parenta902c812e98dd53cf9f16b5175f7c1f87e780b53 (diff)
downloadtrustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.tar.gz
trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.zip
Fix some portability issues
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))