mirror of https://github.com/openbsd/ports.git
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:
parent
ee0de1c024
commit
ffb87ad394
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue