rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / tunctl / patches / 02-remove-if_tun-hdr.patch
blobf3543a737b61b03b757fb862e1c2b8b831d2fc03
1 The sources include a copy of the header. As of 2016, they are identical
2 to those that come with tuntap drivers - and future-wise, they should match.
3 So we use system copy of the header instead, and require the 'header-tun'
4 package as part of the recipe.
6 --- ./tunctl.c.~1~ 2014-12-14 12:59:41.000000000 +0100
7 +++ ./tunctl.c 2016-11-20 00:12:57.004129056 +0100
8 @@ -40,7 +40,7 @@
9 #include <strings.h>
10 #include <errno.h>
11 #include <ctype.h>
12 -#include "if_tun.h"
13 +#include <net/if_tun.h>
15 #ifndef TUNMAXPPA
16 #define TUNMAXPPA 20
17 --- ./Makefile.in.~2~ 2014-12-14 12:59:41.000000000 +0100
18 +++ ./Makefile.in 2016-11-20 00:07:51.307370977 +0100
19 @@ -31,7 +31,7 @@
21 all: tunctl
23 -tunctl: $(SRCDIR)/tunctl.c $(SRCDIR)/if_tun.h
24 +tunctl: $(SRCDIR)/tunctl.c
25 $(CC) $(CFLAGS) $(LDFLAGS) $(SRCDIR)/tunctl.c -o tunctl
27 install: all