Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not rely on OSVERSION to compile or not gr_utils
Baptiste Daroussin committed 13 years ago
commit a7062810a30768d5879abb0b22de77e1e961680e
parent 0d147ca
1 file changed +2 -2
modified libpkg/Makefile
@@ -33,9 +33,9 @@ SRCS= backup.c \
		usergroup.c \
		utils.c

-
OSVERSION!=	awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' /usr/include/sys/param.h
+
HAVE_GRUTILS!=	grep -q gr_copy /usr/include/libutil.h && echo yes

-
.if ${OSVERSION} < 1000003
+
.if ${HAVE_GRUTILS} != yes
SRCS+=	gr_util.c
.endif