diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-03-21 13:37:27 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-03-21 13:41:36 -0400 |
commit | f459579f2b7657a9dd28c84bc871b773553150c5 (patch) | |
tree | 73ae37faa95cbe4645731d0006db1c2b3973eb5f | |
parent | f2e6186ed0ce9b68362ad25d897f1e3c697728ec (diff) | |
download | bfs-f459579f2b7657a9dd28c84bc871b773553150c5.tar.xz |
util: Fix build on GNU Hurd
Hurd apparently #defines BSD, but doesn't profide strtofflags. So make
all that code conditional on !__GNU__.
Link: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=hurd-i386&ver=2.2-1&stamp=1615370700&raw=0
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -237,7 +237,7 @@ int xfaccessat(int fd, const char *path, int amode) { } int xstrtofflags(const char **str, unsigned long long *set, unsigned long long *clear) { -#if BSD +#if BSD && !__GNU__ char *str_arg = (char *)*str; unsigned long set_arg = 0; unsigned long clear_arg = 0; |