diff options
-rw-r--r-- | pk/devicetree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pk/devicetree.c b/pk/devicetree.c index 9a7f772..3ea33d0 100644 --- a/pk/devicetree.c +++ b/pk/devicetree.c @@ -2,9 +2,10 @@ #include "encoding.h" #include "pk.h" #include "mtrap.h" -#include <arpa/inet.h> #include <stdbool.h> +#define ntohl(x) __builtin_bswap32(x) + static uintptr_t max_hart_id; static uint64_t fdt_read_uint64(uint32_t* addr) { |