From cb28c8b5d621e6c1534e3380a1c4a5ef9de5bcdf Mon Sep 17 00:00:00 2001 From: jca Date: Mon, 30 Jan 2023 13:01:31 +0000 Subject: [PATCH] Unbreak detection of inet_pton/inet_ntop with clang 15 and -Wint-conversion --- net/udns/patches/patch-configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net/udns/patches/patch-configure diff --git a/net/udns/patches/patch-configure b/net/udns/patches/patch-configure new file mode 100644 index 00000000000..09bbf3d7e07 --- /dev/null +++ b/net/udns/patches/patch-configure @@ -0,0 +1,12 @@ +Index: configure +--- configure.orig ++++ configure +@@ -93,7 +93,7 @@ int main() { + char buf[64]; + long x = 0; + inet_pton(AF_INET, &x, buf); +- return inet_ntop(AF_INET, &x, buf, sizeof(buf)); ++ return inet_ntop(AF_INET, &x, buf, sizeof(buf)) != (void *)0; + } + EOF +