Gentoo-bug: 595426
* Build using -std=gnu99 due to within-for-loop initializers
and __USE_XOPEN2K macro for struct addrinfo.
Package-Manager: portage-2.3.1
EAPI=6
MY_P="${PN}-v${PV}"
-inherit systemd toolchain-funcs
+inherit flag-o-matic systemd toolchain-funcs
DESCRIPTION="Port multiplexer - accept both HTTPS and SSH connections on the same port"
HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml"
)
src_compile() {
+ # On older versions of GCC, the default gnu89 variant
+ # will reject within-for-loop initializers, bug #595426
+ # Furthermore, we need to use the gnu variant (gnu99) instead
+ # of the ISO (c99) variant, as we want the __USE_XOPEN2K macro
+ # to be defined.
+ append-cflags -std=gnu99
+
emake \
CC="$(tc-getCC)" \
USELIBCAP=$(usev caps) \