void-packages/srcpkgs/librtas/patches/fix-endian_h.patch
Jürgen Buchmüller 40a012c1ee
librtas: fix big endian
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-03-19 15:47:25 +01:00

20 lines
656 B
Diff

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