Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2016 15:59:56 +0100
From:      Tobias Kortkamp <t@tobik.me>
To:        freebsd-ports@freebsd.org
Subject:   ncurses, cmus, and _POSIX_C_SOURCE
Message-ID:  <1479049196.3216236.786195177.54E4EBE9@webmail.messagingengine.com>

next in thread | raw e-mail | index | archive | help
Hi,

I've got a report where audio/cmus will fail to build with ncurses from
ports (https://bugs.freebsd.org/214475).  The trouble seems to come from
ncurses' pkgconf file with adds -D_POSIX_C_SOURCE=200112L to CFLAGS
which hides strndup (which is available with _POSIX_C_SOURCE >= 200809)
from cmus.  I can "fix" the cmus build by adding a prototype for
strndup, but I'm wondering if devel/ncurses may be doing something wrong
here by defining _POSIX_C_SOURCE like it does?

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1479049196.3216236.786195177.54E4EBE9>