Unbreak detection of inet_pton/inet_ntop with clang 15 and -Wint-conversion

This commit is contained in:
jca 2023-01-30 13:01:31 +00:00
parent aae9412eff
commit cb28c8b5d6
1 changed files with 12 additions and 0 deletions

View 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