Skip to content

Commit

Permalink
Fixed OpenWRT arm related build issues. (#2104)
Browse files Browse the repository at this point in the history
Signed-off-by: Toni Uhlig <[email protected]>
  • Loading branch information
utoni authored Oct 16, 2023
1 parent d75a8d3 commit 32b0aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/include/ndpi_define.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/third_party/src/roaring.c
Original file line number Diff line number Diff line change
Expand Up @@ -4298,7 +4298,6 @@ int run_run_container_ixor(

#ifndef WIN32
#include "ndpi_config.h"
#include "ndpi_typedefs.h"

#define NDPI_REPLACE_FPRINTF
#include "../../ndpi_replace_printf.h"
Expand Down

0 comments on commit 32b0aee

Please sign in to comment.