mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 03:41:29 +00:00
libdcwsocket: fix compilation with glibc
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
12
libs/libdcwsocket/patches/010-glibc.patch
Normal file
12
libs/libdcwsocket/patches/010-glibc.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- a/src/dcwsocket.c.linux
|
||||
+++ b/src/dcwsocket.c.linux
|
||||
@@ -36,6 +36,9 @@
|
||||
#include <linux/filter.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
+#ifndef SO_ATTACH_FILTER
|
||||
+#define SO_ATTACH_FILTER 26
|
||||
+#endif
|
||||
|
||||
#define ETHER_HEADERSIZE 14
|
||||
#define CL3_HEADERSIZE 4
|
||||
Reference in New Issue
Block a user