From d897beee917a9de1f7494bea0898ae13094e2b1f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 31 Aug 2020 00:33:41 -0700 Subject: [PATCH] kismet: fix compilation under uClibc-ng and GCC10 Signed-off-by: Rosen Penev --- net/kismet/Makefile | 2 +- net/kismet/patches/040-uclibc.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 net/kismet/patches/040-uclibc.patch diff --git a/net/kismet/Makefile b/net/kismet/Makefile index baacf6e46..4a0e624a7 100644 --- a/net/kismet/Makefile +++ b/net/kismet/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=kismet PKG_VERSION:=2016-07-R1 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_LICENSE:=LGPLv2.1 PKG_CPE_ID:=cpe:/a:kismet:kismet diff --git a/net/kismet/patches/040-uclibc.patch b/net/kismet/patches/040-uclibc.patch new file mode 100644 index 000000000..f63a5da52 --- /dev/null +++ b/net/kismet/patches/040-uclibc.patch @@ -0,0 +1,12 @@ +--- a/ipc_remote.cc ++++ b/ipc_remote.cc +@@ -941,8 +941,8 @@ int RootIPCRemote::OpenFDPassSock() { + } + + typedef struct { +- struct cmsghdr header; + int fd; ++ struct cmsghdr header; + } __attribute__((packed)) cmsg_fd; + + int RootIPCRemote::SendDescriptor(int in_fd) {