From f5e6c15f383ec0bf345d73995cb9f1444d7a4ebf Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 24 Aug 2000 14:51:20 +0000 Subject: Chase the recent moving of linux_ioctl.h. PR: ports/20818 Submitted by: Sean-Paul Rees --- emulators/rtc/Makefile | 8 +++++++- emulators/rtc/files/rtc_linux.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/emulators/rtc/Makefile b/emulators/rtc/Makefile index 8d3ab9b85f36..0e3ca74c995d 100644 --- a/emulators/rtc/Makefile +++ b/emulators/rtc/Makefile @@ -6,7 +6,7 @@ # PORTNAME= rtc -PORTVERSION= 2000.05.05 +PORTVERSION= 2000.08.24 CATEGORIES= emulators linux MASTER_SITES= # none DISTFILES= # none @@ -44,6 +44,12 @@ do-extract: ${FILESDIR}/${STARTUP} > ${WRKDIR}/${STARTUP} @cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/ +post-patch: +.if !exists(/sys/compat/linux/linux_ioctl.h) + ${PERL} -i -pe 's,compat(/linux/linux_ioctl\.h),i386$$1,' \ + ${WRKSRC}/rtc_linux.c +.endif + pre-install: ${MKDIR} ${KMODDIR} ${MKDIR} ${DEVDIR} diff --git a/emulators/rtc/files/rtc_linux.c b/emulators/rtc/files/rtc_linux.c index 2eb04a433890..df112d87212d 100644 --- a/emulators/rtc/files/rtc_linux.c +++ b/emulators/rtc/files/rtc_linux.c @@ -33,7 +33,7 @@ #include #include -#include +#include #include "rtc.h" -- cgit v1.2.3