861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
14 lines
380 B
Diff
14 lines
380 B
Diff
diff --git a/include/libnetfilter_log/libipulog.h b/include/libnetfilter_log/libipulog.h
|
|
index 8a4ae2a..0994b4a 100644
|
|
--- a/include/libnetfilter_log/libipulog.h
|
|
+++ b/include/libnetfilter_log/libipulog.h
|
|
@@ -5,6 +5,8 @@
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
|
|
+#include <sys/types.h> /* for u_int*_t */
|
|
+
|
|
/* FIXME: glibc sucks */
|
|
#ifndef MSG_TRUNC
|
|
#define MSG_TRUNC 0x20
|
|
|