cmake: fix build on NetBSD releases such as 9.0.

NetBSD stdio.h has a bug with visibility of functions, so we get errors:
 error: '::vscanf' has not been declared

Define the other macro that can reach these definitions.

Issue already fixed by joerg in NetBSD stdio.h r1.35.
This commit is contained in:
maya 2020-07-31 12:35:27 +00:00
parent 661575048b
commit a0691e2876

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.2 2020/07/31 09:02:31 wiz Exp $
# $NetBSD: Makefile.common,v 1.3 2020/07/31 12:35:27 maya Exp $
# used by devel/cmake-gui/Makefile
.include "version.mk"
@ -15,3 +15,6 @@ DISTINFO_FILE= ${.CURDIR}/../../devel/cmake/distinfo
PATCHDIR= ${.CURDIR}/../../devel/cmake/patches
USE_LANGUAGES= c c++11
# Workaround issue in NetBSD before stdio.h r1.35 (NetBSD 9_STABLE)
CXXFLAGS.NetBSD+= -D_NETBSD_SOURCE