librtas: fix big endian
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
75efc498dd
commit
40a012c1ee
20
srcpkgs/librtas/patches/fix-endian_h.patch
Normal file
20
srcpkgs/librtas/patches/fix-endian_h.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- librtas_src/librtas.h 2018-06-15 01:49:01.000000000 +0200
|
||||||
|
+++ librtas_src/librtas.h 2019-03-19 15:35:14.839592813 +0100
|
||||||
|
@@ -27,6 +27,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
+#include <endian.h> /* required for BE arches */
|
||||||
|
|
||||||
|
#define RTAS_KERNEL_INT -1001 /* No Kernel Interface to Firmware */
|
||||||
|
#define RTAS_KERNEL_IMP -1002 /* No Kernel Implementation of Function */
|
||||||
|
--- librtasevent_src/librtasevent.h 2018-06-15 01:49:01.000000000 +0200
|
||||||
|
+++ librtasevent_src/librtasevent.h 2019-03-19 15:37:53.055600976 +0100
|
||||||
|
@@ -49,6 +49,7 @@
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
+#include <endian.h>
|
||||||
|
|
||||||
|
struct rtas_event;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'librtas'
|
# Template file for 'librtas'
|
||||||
pkgname=librtas
|
pkgname=librtas
|
||||||
version=2.0.2
|
version=2.0.2
|
||||||
revision=1
|
revision=2
|
||||||
archs="ppc ppc-musl ppc64*"
|
archs="ppc ppc-musl ppc64*"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake libtool"
|
hostmakedepends="automake libtool"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user