[Pdbg] [PATCH] libpdbg: Fix build break

Joel Stanley joel at jms.id.au
Thu Jun 13 16:11:58 AEST 2019


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 at jms.id.au>
---
 libpdbg/libpdbg.c | 1 +
 1 file changed, 1 insertion(+)

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"
-- 
2.20.1



More information about the Pdbg mailing list