mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
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.
This commit is contained in:
parent
50ab3f1ae8
commit
7e39f157ac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386393
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user