diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-08-31 06:15:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-01 07:43:34 +0100 |
commit | 56c0fdfd43c61d6568d180683b917223b5ab074f (patch) | |
tree | cde2997dab642c4dba0c7a7663f1b2267b3855aa | |
parent | 34707c21a0ebe1d5b5563eb5f2d31ac985b8e902 (diff) | |
download | poky-56c0fdfd43c61d6568d180683b917223b5ab074f.tar.gz |
hostap-utils: Use C99 stddefs in defining local typedefs
The code is creating more abstract types which is nice however it should
be using standard defines from stdint.h and not random defines to base
its own type system
(From OE-Core rev: 8eb5bd93614db57654d9d3fcc2edcf6f26f148a6)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch | 36 | ||||
-rw-r--r-- | meta/recipes-bsp/hostap/hostap-utils.inc | 4 |
2 files changed, 39 insertions, 1 deletions
diff --git a/meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch b/meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch new file mode 100644 index 0000000000..b44dca3ec8 --- /dev/null +++ b/meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 742fb110d9841a04b3ced256b0bf80ff304dcaff Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 31 Aug 2015 05:45:08 +0000 | ||
4 | Subject: [PATCH] Define _u32/__s32/__u16/__s16/__u8 in terms of c99 types | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | Upstream-Status: Pending | ||
9 | |||
10 | wireless_copy.h | 10 +++++----- | ||
11 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
12 | |||
13 | diff --git a/wireless_copy.h b/wireless_copy.h | ||
14 | index 8208258..1171a35 100644 | ||
15 | --- a/wireless_copy.h | ||
16 | +++ b/wireless_copy.h | ||
17 | @@ -86,11 +86,11 @@ | ||
18 | #else | ||
19 | #include <sys/types.h> | ||
20 | #include <net/if.h> | ||
21 | -typedef __uint32_t __u32; | ||
22 | -typedef __int32_t __s32; | ||
23 | -typedef __uint16_t __u16; | ||
24 | -typedef __int16_t __s16; | ||
25 | -typedef __uint8_t __u8; | ||
26 | +typedef u_int32_t __u32; | ||
27 | +typedef int32_t __s32; | ||
28 | +typedef u_int16_t __u16; | ||
29 | +typedef int16_t __s16; | ||
30 | +typedef u_int8_t __u8; | ||
31 | #ifndef __user | ||
32 | #define __user | ||
33 | #endif /* __user */ | ||
34 | -- | ||
35 | 2.5.1 | ||
36 | |||
diff --git a/meta/recipes-bsp/hostap/hostap-utils.inc b/meta/recipes-bsp/hostap/hostap-utils.inc index 89d977a65e..140321d0c2 100644 --- a/meta/recipes-bsp/hostap/hostap-utils.inc +++ b/meta/recipes-bsp/hostap/hostap-utils.inc | |||
@@ -10,7 +10,9 @@ SECTION = "kernel/userland" | |||
10 | PR = "r4" | 10 | PR = "r4" |
11 | 11 | ||
12 | SRC_URI = "http://hostap.epitest.fi/releases/hostap-utils-${PV}.tar.gz \ | 12 | SRC_URI = "http://hostap.epitest.fi/releases/hostap-utils-${PV}.tar.gz \ |
13 | file://hostap-fw-load.patch" | 13 | file://hostap-fw-load.patch \ |
14 | file://0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch \ | ||
15 | " | ||
14 | S = "${WORKDIR}/hostap-utils-${PV}" | 16 | S = "${WORKDIR}/hostap-utils-${PV}" |
15 | 17 | ||
16 | BINARIES = "hostap_crypt_conf hostap_diag hostap_fw_load hostap_io_debug \ | 18 | BINARIES = "hostap_crypt_conf hostap_diag hostap_fw_load hostap_io_debug \ |