dd9d4a1979
```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 ```
12 lines
367 B
Diff
12 lines
367 B
Diff
--- a/src/lib/dhcp/pkt_filter_lpf.cc 2016-09-27 12:32:02.000000000 +0200
|
|
+++ b/src/lib/dhcp/pkt_filter_lpf.cc 2016-12-07 12:14:25.850716385 +0100
|
|
@@ -13,7 +13,9 @@
|
|
#include <exceptions/exceptions.h>
|
|
#include <fcntl.h>
|
|
#include <linux/filter.h>
|
|
+#if defined(__GLIBC__)
|
|
#include <linux/if_ether.h>
|
|
+#endif
|
|
#include <linux/if_packet.h>
|
|
#include <net/ethernet.h>
|
|
|