void-packages/srcpkgs/bluez/patches/musl.patch

25 lines
642 B
Diff

Including <linux/if_bridge.h> causes the inclusion of <linux/in6.h>,
which defines 'struct in6_addr', already defined in <netinet/in.h>.
Remove <linux/if_bridge.h> to fix musl build.
--- tools/bneptest.c.orig 2015-07-30 21:17:18.000000000 +0200
+++ tools/bneptest.c 2017-03-01 19:27:43.579458817 +0100
@@ -36,7 +36,6 @@
#include <net/if.h>
#include <linux/sockios.h>
#include <netinet/in.h>
-#include <linux/if_bridge.h>
#include <glib.h>
@@ -50,6 +49,9 @@
#include "lib/bnep.h"
#include "profiles/network/bnep.h"
+/* From <linux/if_bridge.h> */
+#define BRCTL_SET_BRIDGE_FORWARD_DELAY 8
+
enum {
MODE_LISTEN,
MODE_CONNECT,