[Pdbg] [PATCH] sbefifo: Fix musl build
Joel Stanley
joel at jms.id.au
Mon Sep 30 15:58:42 AEST 2019
Musl requires endian.h when using be32toh.
Signed-off-by: Joel Stanley <joel at jms.id.au>
---
libsbefifo/ffdc.c | 1 +
libsbefifo/operation.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/libsbefifo/ffdc.c b/libsbefifo/ffdc.c
index f29afc1d0a0e..3b82e210b656 100644
--- a/libsbefifo/ffdc.c
+++ b/libsbefifo/ffdc.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <endian.h>
#include "sbefifo_private.h"
diff --git a/libsbefifo/operation.c b/libsbefifo/operation.c
index 43418a15904e..1ad577cf35e4 100644
--- a/libsbefifo/operation.c
+++ b/libsbefifo/operation.c
@@ -20,6 +20,7 @@
#include <unistd.h>
#include <errno.h>
#include <assert.h>
+#include <endian.h>
#include "sbefifo_private.h"
--
2.23.0
More information about the Pdbg
mailing list