diff mbox series

libpdbg: Fix build break

Message ID 20190613061158.9232-1-joel@jms.id.au
State Accepted
Headers show
Series libpdbg: Fix build break | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (2463be165d7eaa50b648c343e410d851edfb70ce)
snowpatch_ozlabs/build-multiarch success Test build-multiarch on branch master

Commit Message

Joel Stanley June 13, 2019, 6:11 a.m. UTC
When building for ppc32 under buildroot:

 libpdbg/libpdbg.c: In function 'pdbg_target_u32_property':
 libpdbg/libpdbg.c:147:9: error: implicit declaration of function
 'be32toh' [-Werror=implicit-function-declaration]
   *val = be32toh(*p);
         ^~~~~~~

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 libpdbg/libpdbg.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libpdbg/libpdbg.c b/libpdbg/libpdbg.c
index 0e71dece0eab..0c5a451678b4 100644
--- a/libpdbg/libpdbg.c
+++ b/libpdbg/libpdbg.c
@@ -1,4 +1,5 @@ 
 #include <string.h>
+#include <endian.h>
 
 #include "target.h"
 #include "libpdbg.h"