aports/main/udns/implicit.patch
2023-04-20 03:55:24 +02:00

28 lines
657 B
Diff

the configure tests are broken with -Werror, so just simplify them as we have
this
diff --git a/configure b/configure
index dda98b3..b8c1481 100755
--- a/configure
+++ b/configure
@@ -74,9 +74,7 @@ int main(int argc, char **argv) {
}
EOF
-if ac_library_find_v 'socket and connect' "" "-lsocket -lnsl" <<EOF
-int main() { socket(); connect(); return 0; }
-EOF
+if true
then :
else
ac_fatal "cannot find libraries needed for sockets"
@@ -93,7 +91,8 @@ int main() {
char buf[64];
long x = 0;
inet_pton(AF_INET, &x, buf);
- return inet_ntop(AF_INET, &x, buf, sizeof(buf));
+ inet_ntop(AF_INET, &x, buf, sizeof(buf));
+ return 0;
}
EOF