Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Change version check to match the Makefile check for libutil
Bryan Drewery committed 13 years ago
commit 0ea353666abbb40dd937bfbd25239477abf7fcab
parent 64e271e
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"