mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
security/pixiewps: fix build with GCC-based architectures
PR: 237102 Submitted by: pkubaj@anongoth.pl Approved by: franz@bett.ag (maintainer)
This commit is contained in:
parent
857a8bcf49
commit
ff00850d8f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498520
@ -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
|
||||
|
8
security/pixiewps/files/patch-Makefile
Normal file
8
security/pixiewps/files/patch-Makefile
Normal file
@ -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)
|
13
security/pixiewps/files/patch-pixiewps.c
Normal file
13
security/pixiewps/files/patch-pixiewps.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- pixiewps.c.orig 2019-04-08 08:26:23 UTC
|
||||
+++ pixiewps.c
|
||||
@@ -32,6 +32,10 @@
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+# include <sys/types.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef __APPLE__
|
||||
# define _DARWIN_C_SOURCE
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user