mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
20 lines
408 B
Plaintext
20 lines
408 B
Plaintext
Patch to use pledge on OpenBSD.
|
|
|
|
Index: lib/isc/net.c
|
|
--- lib/isc/net.c.orig
|
|
+++ lib/isc/net.c
|
|
@@ -204,6 +204,13 @@ isc_net_probeipv6(void) {
|
|
|
|
static void
|
|
try_ipv6only(void) {
|
|
+#ifdef __OpenBSD__
|
|
+/*
|
|
+ * pledge doesn't allow setting IPV6_V6ONLY, but that's ok,
|
|
+ * IPV6_V6ONLY is always enabled on OpenBSD;
|
|
+ */
|
|
+#undef IPV6_V6ONLY
|
|
+#endif
|
|
#ifdef IPV6_V6ONLY
|
|
int s, on;
|
|
#endif /* ifdef IPV6_V6ONLY */
|