diff --git a/net/libwebsockets/files/patch-lib_server.c b/net/libwebsockets/files/patch-lib_server.c new file mode 100644 index 000000000000..5ccf6c54c6c9 --- /dev/null +++ b/net/libwebsockets/files/patch-lib_server.c @@ -0,0 +1,11 @@ +--- lib/server.c.orig 2016-11-23 13:04:24 UTC ++++ lib/server.c +@@ -110,7 +110,7 @@ lws_context_init_server(struct lws_conte + if (LWS_IPV6_ENABLED(vhost)) { + if (vhost->options & LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY) { + int value = (vhost->options & LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE) ? 1 : 0; +- if (setsockopt(sockfd, SOL_IPV6, IPV6_V6ONLY, ++ if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY, + (const void*)&value, sizeof(value)) < 0) { + compatible_close(sockfd); + return 1;