diff --git a/net/n2n/patches/101-Add-missing-header-zstd-build.patch b/net/n2n/patches/101-Add-missing-header-zstd-build.patch new file mode 100644 index 0000000000..5199e84966 --- /dev/null +++ b/net/n2n/patches/101-Add-missing-header-zstd-build.patch @@ -0,0 +1,30 @@ +--- a/src/edge_utils.c ++++ b/src/edge_utils.c +@@ -19,6 +19,7 @@ + #include "n2n.h" + #include "network_traffic_filter.h" + #include "edge_utils_win32.h" ++#include + + /* heap allocation for compression as per lzo example doc */ + #define HEAP_ALLOC(var,size) lzo_align_t __LZO_MMODEL var [ ((size) + (sizeof(lzo_align_t) - 1)) / sizeof(lzo_align_t) ] +--- a/tools/n2n-benchmark.c ++++ b/tools/n2n-benchmark.c +@@ -23,6 +23,7 @@ + #endif + + #include "n2n.h" ++#include + + #define DURATION 2.5 // test duration per algorithm + #define PACKETS_BEFORE_GETTIME 2047 // do not check time after every packet but after (2 ^ n - 1) +--- a/tools/tests-compress.c ++++ b/tools/tests-compress.c +@@ -22,6 +22,7 @@ + + #include "n2n.h" + #include "hexdump.h" ++#include + + /* heap allocation for compression as per lzo example doc */ + #define HEAP_ALLOC(var,size) lzo_align_t __LZO_MMODEL var [ ((size) + (sizeof(lzo_align_t) - 1)) / sizeof(lzo_align_t) ]