summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emulators/rtc/Makefile8
-rw-r--r--emulators/rtc/files/rtc_linux.c2
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 <i386/linux/linux.h>
#include <i386/linux/linux_proto.h>
-#include <i386/linux/linux_ioctl.h>
+#include <compat/linux/linux_ioctl.h>
#include "rtc.h"