From f459579f2b7657a9dd28c84bc871b773553150c5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 21 Mar 2021 13:37:27 -0400 Subject: 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 --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3