aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-05-15 17:40:37 +0800
committermarino <marino@FreeBSD.org>2015-05-15 17:40:37 +0800
commit2d0ae7570fe8e04cb16c4487abc642259bff039f (patch)
treedb9412608ac95b35d0986427b267f365409342d8
parentce1c944f333747fda5bb4f800b441e2ce8a26dcf (diff)
downloadfreebsd-ports-gnome-2d0ae7570fe8e04cb16c4487abc642259bff039f.tar.gz
freebsd-ports-gnome-2d0ae7570fe8e04cb16c4487abc642259bff039f.tar.zst
freebsd-ports-gnome-2d0ae7570fe8e04cb16c4487abc642259bff039f.zip
sysutils/rdate: Unbreak DragonFly after previous commit
OSVERSION was used without OPSYS. This fix really should be "if dragonfly or (freebsd osversion < X)" but currently OSVERSION is valid as long as OPSYS <> DragonFly so this change will work and is simpler than the "real" fix. Ideally all of this should be replaced with a feature detection mechanism.
-rw-r--r--sysutils/rdate/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysutils/rdate/Makefile b/sysutils/rdate/Makefile
index 03052a9508e0..c7220c26c669 100644
--- a/sysutils/rdate/Makefile
+++ b/sysutils/rdate/Makefile
@@ -18,7 +18,7 @@ PLIST_FILES= sbin/rdate man/man8/${PORTNAME}.8.gz
post-patch:
${REINPLACE_CMD} -e 's,/right,,' ${WRKSRC}/rdate.8
-.if ${OSVERSION} < 1100072
+.if ${OPSYS} == DragonFly || ${OSVERSION} < 1100072
${REINPLACE_CMD} -e '/^SRCS/s/$$/ reallocarray.c/' ${WRKSRC}/Makefile
${ECHO} 'void *reallocarray(void *optr, size_t nmemb, size_t size);' \
>> ${WRKSRC}/ntpleaps.h