diff -Naur a/netsurf/utils/config.h b/netsurf/utils/config.h
--- a/netsurf/utils/config.h	2026-06-03 23:50:18.641104799 +0000
+++ b/netsurf/utils/config.h	2026-06-03 23:53:51.866091024 +0000
@@ -200,4 +200,8 @@
 	#define NO_IPV6
 #endif

+#ifndef AF_INET6
+	#define NO_IPV6
+#endif
+
 #endif
