aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorlme <lme@FreeBSD.org>2011-08-29 00:29:39 +0800
committerlme <lme@FreeBSD.org>2011-08-29 00:29:39 +0800
commiteb8956c546aa2679db31eada447915f84b5a87ef (patch)
tree0d8008af9530da4be18a09567dec36d5803e4613 /net-mgmt
parentcb7ae6e5a8d711a32154ce6cf499e3a1dcd33e91 (diff)
downloadfreebsd-ports-gnome-eb8956c546aa2679db31eada447915f84b5a87ef.tar.gz
freebsd-ports-gnome-eb8956c546aa2679db31eada447915f84b5a87ef.tar.zst
freebsd-ports-gnome-eb8956c546aa2679db31eada447915f84b5a87ef.zip
Potential fix build on sparc64
PR: ports/160183 Submitted by: naddy Approved by: Maintainer (me)
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/aircrack-ng/Makefile2
-rw-r--r--net-mgmt/aircrack-ng/files/patch-src_osdep_byteorder.h11
2 files changed, 11 insertions, 2 deletions
diff --git a/net-mgmt/aircrack-ng/Makefile b/net-mgmt/aircrack-ng/Makefile
index 0dfb45219faf..203613709d5c 100644
--- a/net-mgmt/aircrack-ng/Makefile
+++ b/net-mgmt/aircrack-ng/Makefile
@@ -37,8 +37,6 @@ OPTIONS= SQLITE "Use SQLite for storing pre-computed key tables" off
.if ${ARCH} == "powerpc"
BROKEN= Does not compile on powerpc
-.elif ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64: missing byteorder.h
.endif
.if defined(WITH_SQLITE)
diff --git a/net-mgmt/aircrack-ng/files/patch-src_osdep_byteorder.h b/net-mgmt/aircrack-ng/files/patch-src_osdep_byteorder.h
new file mode 100644
index 000000000000..a7606c6fb762
--- /dev/null
+++ b/net-mgmt/aircrack-ng/files/patch-src_osdep_byteorder.h
@@ -0,0 +1,11 @@
+--- src/osdep/byteorder.h.orig 2011-08-28 18:26:15.000000000 +0200
++++ src/osdep/byteorder.h 2011-08-28 18:26:25.000000000 +0200
+@@ -167,7 +167,7 @@
+ * Solaris
+ * -------
+ */
+- #if defined(__sparc__)
++ #if defined(__sun) && defined(__SVR4) && defined(__sparc__)
+ #include <sys/byteorder.h>
+ #include <sys/types.h>
+ #include <unistd.h>