From 11315d3b950d1c3ae654402ed4e1ffaa90c628e6 Mon Sep 17 00:00:00 2001 From: naddy Date: Thu, 25 Aug 2011 12:51:56 +0000 Subject: [PATCH] don't use #ifdef __sparc__ to check for Solaris; ok benoit@ --- .../patches/patch-src_osdep_byteorder_h | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/security/aircrack-ng/patches/patch-src_osdep_byteorder_h b/security/aircrack-ng/patches/patch-src_osdep_byteorder_h index 40575580c71..e7af99a592a 100644 --- a/security/aircrack-ng/patches/patch-src_osdep_byteorder_h +++ b/security/aircrack-ng/patches/patch-src_osdep_byteorder_h @@ -1,10 +1,21 @@ -$OpenBSD: patch-src_osdep_byteorder_h,v 1.1 2011/05/21 11:19:24 fgsch Exp $ ---- src/osdep/byteorder.h.orig Fri Jan 22 01:01:28 2010 -+++ src/osdep/byteorder.h Sun May 1 08:21:24 2011 -@@ -212,6 +212,19 @@ +$OpenBSD: patch-src_osdep_byteorder_h,v 1.2 2011/08/25 12:51:56 naddy Exp $ +--- src/osdep/byteorder.h.orig Wed Aug 24 21:36:30 2011 ++++ src/osdep/byteorder.h Wed Aug 24 21:55:32 2011 +@@ -167,7 +167,7 @@ + * Solaris + * ------- + */ +- #if defined(__sparc__) ++ #if defined(__sun) && defined(__SVR4) + #include + #include + #include +@@ -210,6 +210,19 @@ + // FreeBSD + #ifdef __FreeBSD__ #include - #endif - ++ #endif ++ + #ifdef __OpenBSD__ + #include + @@ -16,8 +27,6 @@ $OpenBSD: patch-src_osdep_byteorder_h,v 1.1 2011/05/21 11:19:24 fgsch Exp $ + #define __le16_to_cpu(x) letoh16(x) + + #define AIRCRACK_NG_BYTE_ORDER_DEFINED -+ #endif -+ + #endif + // XXX: Is there anything to include on OpenBSD/NetBSD/DragonFlyBSD/...? - -