diff --git a/security/pixiewps/Makefile b/security/pixiewps/Makefile index 4a0e0f44b7d3..f143d80554f1 100644 --- a/security/pixiewps/Makefile +++ b/security/pixiewps/Makefile @@ -12,8 +12,6 @@ COMMENT= Offline WPS bruteforce utility LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../LICENSE.md -BROKEN_powerpc64= fails to compile: /usr/include/sys/sysctl.h:1033:25: unknown type name 'u_int' - USES= gmake WRKSRC_SUBDIR= src USE_GITHUB= yes diff --git a/security/pixiewps/files/patch-Makefile b/security/pixiewps/files/patch-Makefile new file mode 100644 index 000000000000..fd7664dd28cb --- /dev/null +++ b/security/pixiewps/files/patch-Makefile @@ -0,0 +1,8 @@ +--- Makefile.orig 2019-04-08 08:32:00 UTC ++++ Makefile +@@ -1,4 +1,4 @@ +-CFLAGS = -std=c99 -O3 ++CFLAGS += -std=c99 -D__BSD_VISIBLE + + LIBS = -lpthread + ifeq ($(OPENSSL),1) diff --git a/security/pixiewps/files/patch-pixiewps.c b/security/pixiewps/files/patch-pixiewps.c new file mode 100644 index 000000000000..8f0a1c7c75d0 --- /dev/null +++ b/security/pixiewps/files/patch-pixiewps.c @@ -0,0 +1,13 @@ +--- pixiewps.c.orig 2019-04-08 08:26:23 UTC ++++ pixiewps.c +@@ -32,6 +32,10 @@ + # include + #endif + ++#ifdef __FreeBSD__ ++# include ++#endif ++ + #ifdef __APPLE__ + # define _DARWIN_C_SOURCE + #endif