diff options
-rw-r--r-- | net-mgmt/aircrack-ng/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/aircrack-ng/files/patch-src_osdep_byteorder.h | 11 |
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>
|