From 361ba5395663d091ee9831444c4ed3183e27ce6caf58708e96e1b88f8664bfc2 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 3 Oct 2013 10:46:33 +0000 Subject: [PATCH] Accepting request 201924 from home:k0da:ppc - fix host_to_le32 undefined on BigEndian architectures (hostapd-be-host_to_le.patch) OBS-URL: https://build.opensuse.org/request/show/201924 OBS-URL: https://build.opensuse.org/package/show/Base:System/hostapd?expand=0&rev=22 --- hostapd-be-host_to_le.patch | 12 ++++++++++++ hostapd.changes | 6 ++++++ hostapd.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 hostapd-be-host_to_le.patch diff --git a/hostapd-be-host_to_le.patch b/hostapd-be-host_to_le.patch new file mode 100644 index 0000000..59e3895 --- /dev/null +++ b/hostapd-be-host_to_le.patch @@ -0,0 +1,12 @@ +Index: hostapd-2.0/src/utils/common.h +=================================================================== +--- hostapd-2.0.orig/src/utils/common.h ++++ hostapd-2.0/src/utils/common.h +@@ -207,6 +207,7 @@ static inline unsigned int wpa_swap_32(u + #define le_to_host32(n) bswap_32(n) + #define be_to_host32(n) (n) + #define host_to_be32(n) (n) ++#define host_to_le32(n) bswap_32(n) + #define le_to_host64(n) bswap_64(n) + #define host_to_le64(n) bswap_64(n) + #define be_to_host64(n) (n) diff --git a/hostapd.changes b/hostapd.changes index b17f4df..58a97d2 100644 --- a/hostapd.changes +++ b/hostapd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 2 15:33:43 UTC 2013 - dvaleev@suse.com + +- fix host_to_le32 undefined on BigEndian architectures + (hostapd-be-host_to_le.patch) + ------------------------------------------------------------------- Thu Apr 18 08:05:13 UTC 2013 - aj@suse.com diff --git a/hostapd.spec b/hostapd.spec index b6ed42c..2b21e13 100644 --- a/hostapd.spec +++ b/hostapd.spec @@ -32,6 +32,7 @@ Source: http://hostap.epitest.fi/releases/hostapd-%{version}.tar.gz Source1: hostapd.service Patch0: hostapd.diff Patch1: hostapd-tmp.diff +Patch2: hostapd-be-host_to_le.patch %{?systemd_requires} %description @@ -47,6 +48,7 @@ authentication via any ethernet driver. %setup -q -n hostapd-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 cd hostapd cp defconfig .config