Unbreak detection of inet_pton/inet_ntop with clang 15 and -Wint-conversion
This commit is contained in:
parent
aae9412eff
commit
cb28c8b5d6
12
net/udns/patches/patch-configure
Normal file
12
net/udns/patches/patch-configure
Normal file
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user