Skip to content

Commit fb2a8ba

Browse files
committed
libwebsockets: fix build
1 parent 1feb228 commit fb2a8ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

devel/libwebsockets/Portfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
22

33
PortSystem 1.0
4-
PortGroup github 1.0
54
PortGroup cmake 1.1
5+
PortGroup github 1.0
66
PortGroup legacysupport 1.1
77

88
# LegacySupport is needed for strnlen before 10.7
@@ -31,7 +31,7 @@ checksums rmd160 aed3594d639d46e926a4d445bee2ea44b7726a2c \
3131
depends_lib-append path:lib/libssl.dylib:openssl \
3232
port:zlib \
3333
port:libev \
34-
port:libuv
34+
path:lib/pkgconfig/libuv.pc:libuv
3535

3636
# https://trac.macports.org/ticket/65706
3737
compiler.blacklist-append *gcc-4.*
@@ -56,6 +56,10 @@ configure.args-append \
5656
-DLWS_WITH_SOCKS5=ON \
5757
-DLWS_WITH_ZIP_FOPS=ON
5858

59+
# dir.c:127:49: error: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types]
60+
configure.cflags-append \
61+
-D_MACPORTS_LEGACY_COMPATIBLE_SCANDIR=1
62+
5963
post-extract {
6064
reinplace "s|-Werror||g" ${worksrcpath}/CMakeLists.txt
6165
}

0 commit comments

Comments
 (0)