1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

kmod-native: use bswap to work on older Linux hosts

We can't use htobe* and be*toh functions because they are not
available on older versions of glibc, For example, shipped on Centos 5.5.

Change to directly calling bswap_* as defined in byteswap.h.

(From OE-Core rev: 63edb6b9a8bdf2f5541edd618f2f598185e37223)

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ting Liu
2013-09-10 06:00:20 +00:00
committed by Richard Purdie
parent f33afade31
commit 0f431a3123
2 changed files with 40 additions and 0 deletions
@@ -6,6 +6,7 @@ inherit native
SRC_URI += "file://fix-undefined-O_CLOEXEC.patch \
file://0001-Fix-build-with-older-gcc-4.6.patch \
file://Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch \
"
do_install_append (){