Skip to content

Commit

Permalink
Fix NDPI on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Dec 25, 2023
1 parent 95cdac7 commit 8d88557
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ndpi-netfilter2/patches/004-fix-compilation-on-arm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/src/include/ndpi_define.h.in 2023-12-25 08:45:56.692170223 +0100
+++ b/src/include/ndpi_define.h.in 2023-12-25 08:46:11.595904820 +0100
@@ -326,7 +326,6 @@
#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__)
-#include <stdint.h>
static inline uint64_t get_u_int64_t(const uint8_t* X, int O)
{
uint64_t tmp;

0 comments on commit 8d88557

Please sign in to comment.