librtas: fix big endian

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-03-19 15:47:25 +01:00
parent 75efc498dd
commit 40a012c1ee
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8
2 changed files with 21 additions and 1 deletions

View 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;

View file

@ -1,7 +1,7 @@
# Template file for 'librtas'
pkgname=librtas
version=2.0.2
revision=1
revision=2
archs="ppc ppc-musl ppc64*"
build_style=gnu-configure
hostmakedepends="automake libtool"