Fixed OpenWRT arm related build issues. (#2104)

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2023-10-16 19:49:50 +02:00
committed by GitHub
parent d75a8d339a
commit 32b0aeea59
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -310,9 +310,10 @@
#define get_u_int16_t(X,O) (*(u_int16_t *)((&(((u_int8_t *)X)[O]))))
#define get_u_int32_t(X,O) (*(u_int32_t *)((&(((u_int8_t *)X)[O]))))
#if defined(__arm__)
static inline u_int64_t get_u_int64_t(const u_int8_t* X, int O)
#include <stdint.h>
static inline uint64_t get_u_int64_t(const uint8_t* X, int O)
{
u_int64_t tmp;
uint64_t tmp;
memcpy(&tmp, X + O, sizeof(tmp));
return tmp;
}