Browse Source

bridge-utils: fix musl compatibility

Add missing includes to libbridge.h to define struct timeval and the
required u_int*_t types under musl.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
lilik-openwrt-22.03
Jo-Philipp Wich 10 years ago
parent
commit
c10f93b913
2 changed files with 12 additions and 1 deletions
  1. +1
    -1
      net/bridge-utils/Makefile
  2. +11
    -0
      net/bridge-utils/patches/100-musl-compat.patch

+ 1
- 1
net/bridge-utils/Makefile View File

@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=bridge-utils PKG_NAME:=bridge-utils
PKG_VERSION:=1.5 PKG_VERSION:=1.5
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git


+ 11
- 0
net/bridge-utils/patches/100-musl-compat.patch View File

@ -0,0 +1,11 @@
--- a/libbridge/libbridge.h
+++ b/libbridge/libbridge.h
@@ -19,6 +19,8 @@
#ifndef _LIBBRIDGE_H
#define _LIBBRIDGE_H
+#include <sys/types.h>
+#include <sys/select.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <linux/if.h>

Loading…
Cancel
Save