From c688b154b4e32cf03e56384fe2df2343a46c5f15 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 26 Aug 2020 16:07:40 -0700 Subject: [PATCH] libdcwsocket: fix compilation with glibc Signed-off-by: Rosen Penev --- libs/libdcwsocket/Makefile | 2 +- libs/libdcwsocket/patches/010-glibc.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 libs/libdcwsocket/patches/010-glibc.patch diff --git a/libs/libdcwsocket/Makefile b/libs/libdcwsocket/Makefile index 73a4c3a62..28176a8ec 100644 --- a/libs/libdcwsocket/Makefile +++ b/libs/libdcwsocket/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libdcwsocket PKG_VERSION:=1.1.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/ewsi/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)? diff --git a/libs/libdcwsocket/patches/010-glibc.patch b/libs/libdcwsocket/patches/010-glibc.patch new file mode 100644 index 000000000..24cb24b78 --- /dev/null +++ b/libs/libdcwsocket/patches/010-glibc.patch @@ -0,0 +1,12 @@ +--- a/src/dcwsocket.c.linux ++++ b/src/dcwsocket.c.linux +@@ -36,6 +36,9 @@ + #include + #include + ++#ifndef SO_ATTACH_FILTER ++#define SO_ATTACH_FILTER 26 ++#endif + + #define ETHER_HEADERSIZE 14 + #define CL3_HEADERSIZE 4