From 37cf0da23dbd0c1d91602d25e831a7dc0dde1224 Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Fri, 11 Nov 2022 21:32:38 +0100 Subject: security/fragrouter: fix build on BPF-less jails Such jails don't have /dev/bpf0, making a crucial configure test fail. Fix the configure test to make the build succeed (e.g. on armv7). And while here, also assume MAINTAINER. PR: 267646 --- security/fragrouter/files/patch-fragrouter.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 security/fragrouter/files/patch-fragrouter.c (limited to 'security/fragrouter/files/patch-fragrouter.c') diff --git a/security/fragrouter/files/patch-fragrouter.c b/security/fragrouter/files/patch-fragrouter.c new file mode 100644 index 000000000000..173cac0f2c04 --- /dev/null +++ b/security/fragrouter/files/patch-fragrouter.c @@ -0,0 +1,13 @@ +--- fragrouter.c.orig 2022-11-08 17:15:14 UTC ++++ fragrouter.c +@@ -104,8 +104,8 @@ usage(void) + int + main(int argc, char *argv[]) + { +- char c, ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL; +- int num = 0, type = -1, hopptr = 4; ++ char ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL; ++ int c, num = 0, type = -1, hopptr = 4; + attack_handler attack; + + hops[0] = '\0'; -- cgit v1.2.3