summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-03-21 13:37:27 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-03-21 13:41:36 -0400
commitf459579f2b7657a9dd28c84bc871b773553150c5 (patch)
tree73ae37faa95cbe4645731d0006db1c2b3973eb5f /util.c
parentf2e6186ed0ce9b68362ad25d897f1e3c697728ec (diff)
downloadbfs-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
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 63ea756..42e3d98 100644
--- a/util.c
+++ b/util.c
@@ -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;