aboutsummaryrefslogtreecommitdiffstats
path: root/main/bridge-utils/00-musl-headers.patch
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2016-01-30 18:40:53 -0800
committerNatanael Copa <ncopa@alpinelinux.org>2016-02-02 14:47:13 +0000
commit07324ad69b08d275994687d13b090a9757ae3073 (patch)
treeac869f36dbcdbc8f366d4c4727039630de8fafdd /main/bridge-utils/00-musl-headers.patch
parentf74dace813fbdf69df5c7264b4fc0a9b87609b14 (diff)
downloadaports-07324ad69b08d275994687d13b090a9757ae3073.tar.bz2
aports-07324ad69b08d275994687d13b090a9757ae3073.tar.xz
main/bridge-utils: build fixes
* restore prepare() function * include correct headers
Diffstat (limited to 'main/bridge-utils/00-musl-headers.patch')
-rw-r--r--main/bridge-utils/00-musl-headers.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/main/bridge-utils/00-musl-headers.patch b/main/bridge-utils/00-musl-headers.patch
new file mode 100644
index 0000000000..a9707318e1
--- /dev/null
+++ b/main/bridge-utils/00-musl-headers.patch
@@ -0,0 +1,53 @@
+diff --git a/brctl/brctl.c b/brctl/brctl.c
+index 454b8dd..8a7f095 100644
+--- a/brctl/brctl.c
++++ b/brctl/brctl.c
+@@ -19,7 +19,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <sys/errno.h>
++#include <errno.h>
+ #include <getopt.h>
+
+ #include "libbridge.h"
+diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h
+index 39964f2..73de4fb 100644
+--- a/libbridge/libbridge.h
++++ b/libbridge/libbridge.h
+@@ -23,6 +23,9 @@
+ #include <linux/if.h>
+ #include <linux/if_bridge.h>
+
++#include <sys/types.h>
++#include <sys/time.h>
++
+ /* defined in net/if.h but that conflicts with linux/if.h... */
+ extern unsigned int if_nametoindex (const char *__ifname);
+ extern char *if_indextoname (unsigned int __ifindex, char *__ifname);
+diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c
+index aa8bc36..1da3549 100644
+--- a/libbridge/libbridge_devif.c
++++ b/libbridge/libbridge_devif.c
+@@ -23,7 +23,7 @@
+ #include <errno.h>
+ #include <string.h>
+ #include <dirent.h>
+-#include <sys/fcntl.h>
++#include <fcntl.h>
+
+ #include "libbridge.h"
+ #include "libbridge_private.h"
+diff --git a/libbridge/libbridge_if.c b/libbridge/libbridge_if.c
+index 77d3f8a..9cf4bac 100644
+--- a/libbridge/libbridge_if.c
++++ b/libbridge/libbridge_if.c
+@@ -20,7 +20,7 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <string.h>
+-#include <sys/fcntl.h>
++#include <fcntl.h>
+ #include <sys/ioctl.h>
+
+ #include "libbridge.h"