polkit: fix build on sparc64

gcc doesn't error on implicit function declaration. The configure check of
netgrent() therefore incorrectly sets HAVE_SETGRENT_RETURN, breaking the
build. Also define _BSD_SOURCE to avoid a subsequent error due to implicit
declaration of getgrouplist(3).

ok ajacoutot (maintainer)
This commit is contained in:
tb 2024-01-26 07:28:10 +00:00
parent ee0de1c024
commit ffb87ad394
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ CONFIGURE_ARGS= -Dsession_tracking=ConsoleKit \
# man pages
BUILD_DEPENDS += textproc/docbook-xsl
CONFIGURE_ARGS += -Dman=true
# XXX sparc64: fix netgrent() detection and implicit getgrouplist() declaration
CONFIGURE_ARGS += -Dc_args="${CFLAGS} -Werror-implicit-function-declaration -D_BSD_SOURCE"
DEBUG_PACKAGES= ${BUILD_PACKAGES}