From 1746e10449e94cd00857285b44ef3ce9f43a8f0d Mon Sep 17 00:00:00 2001 From: Chris Hettrick Date: Fri, 23 Feb 2024 12:08:53 -0700 Subject: [PATCH] tools/binstall: Support use of FreeBSD strtofflags(3). FreeBSD's version of strtofflags(3) uses u_long types, so use them. Silences warning of incompatible pointer types. --- tools/binstall/xinstall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/binstall/xinstall.c b/tools/binstall/xinstall.c index 126bb520..eb2c152a 100644 --- a/tools/binstall/xinstall.c +++ b/tools/binstall/xinstall.c @@ -96,7 +96,11 @@ main(int argc, char *argv[]) { struct stat from_sb, to_sb; void *set; +#ifdef __FreeBSD__ + u_long fset = 0; +#else u_int32_t fset = 0; +#endif u_int iflags; int ch, no_target; char *flags, *to_name, *group = NULL, *owner = NULL;