Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Change version check to match the Makefile check for libutil
Bryan Drewery committed 13 years ago
commit 0ea353666abbb40dd937bfbd25239477abf7fcab
parent 64e271ebbdae66342d8313fcf485d11cb3684dbd
2 files changed +3 -1
modified libpkg/Makefile
@@ -37,6 +37,8 @@ HAVE_GRUTILS!= grep -q gr_copy /usr/include/libutil.h && echo yes || echo no

.if ${HAVE_GRUTILS} != yes
SRCS+=	gr_util.c
+
.else
+
CFLAGS+=	-DHAVE_GRUTILS
.endif

CFLAGS+=	-std=c99
modified libpkg/usergroup.c
@@ -32,7 +32,7 @@
#include <libutil.h>
#include <string.h>

-
#if __FreeBSD_version < 1000003
+
#ifndef HAVE_GRUTILS
#include "private/gr_util.h"
#endif
#include "pkg.h"