diff --git a/package/network/services/umdns/Makefile b/package/network/services/umdns/Makefile index b7564fa7c..4510bdeb6 100644 --- a/package/network/services/umdns/Makefile +++ b/package/network/services/umdns/Makefile @@ -12,9 +12,9 @@ PKG_RELEASE:=5 PKG_SOURCE_URL=$(PROJECT_GIT)/project/mdnsd.git PKG_SOURCE_PROTO:=git -PKG_SOURCE_DATE:=2023-01-16 -PKG_SOURCE_VERSION:=65b3308d13de7d7975444d34389651612e2a4d38 -PKG_MIRROR_HASH:=945fdf51a299b68982aab74e8fba5614f2553a7b4c49a3a53b3093ea8aac0279 +PKG_SOURCE_DATE:=2023-10-19 +PKG_SOURCE_VERSION:=d45c443aa1e6514aab58bbbf9311913e484d31a6 +PKG_MIRROR_HASH:=20d91d867f4f34a37c7b2a600327884375f9f16c1ea9bbb3199347d8b617d856 PKG_MAINTAINER:=John Crispin PKG_LICENSE:=LGPL-2.1 diff --git a/package/network/services/umdns/patches/0001-add-definition-of-container_of_safe.patch b/package/network/services/umdns/patches/0001-add-definition-of-container_of_safe.patch new file mode 100644 index 000000000..63a0ee82d --- /dev/null +++ b/package/network/services/umdns/patches/0001-add-definition-of-container_of_safe.patch @@ -0,0 +1,28 @@ +From 556cef9c29613530c1eb240fbe8bdf31b135fc77 Mon Sep 17 00:00:00 2001 +From: HiGarfield +Date: Sat, 28 Oct 2023 21:55:20 +0800 +Subject: [PATCH] add definition of container_of_safe + +--- + interface.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/interface.c b/interface.c +index e98edde..3b84287 100644 +--- a/interface.c ++++ b/interface.c +@@ -41,6 +41,11 @@ + #include "announce.h" + #include "service.h" + ++#ifndef container_of_safe ++#define container_of_safe(ptr, type, member) \ ++ ((!(ptr)) ? ((void *) (ptr)) : container_of((ptr), (type), (member))) ++#endif ++ + static struct uloop_fd ufd[] = { + [SOCK_UC_IPV4] = { .fd = -1 }, + [SOCK_UC_IPV6] = { .fd = -1 }, +-- +2.25.1 +