diff options
| author | Cameron Katri <me@cameronkatri.com> | 2022-05-25 18:20:38 -0400 |
|---|---|---|
| committer | Cameron Katri <me@cameronkatri.com> | 2022-05-25 18:20:38 -0400 |
| commit | 3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d (patch) | |
| tree | 34b4c2f32dca91660db151412cd94ce5a4d58ece /cache_from_tree.c | |
| parent | a902c812e98dd53cf9f16b5175f7c1f87e780b53 (diff) | |
| download | trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.tar.gz trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.zip | |
Fix some portability issues
Diffstat (limited to 'cache_from_tree.c')
| -rw-r--r-- | cache_from_tree.c | 3 |
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)) |
