From d740f1377cf10b4fe7f2eebee38b140d81de1c40 Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 23 Aug 2000 19:13:51 +0000 Subject: Chase the recent moving of linux_ioctl.h. --- emulators/vmware2/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'emulators/vmware2') diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile index 6483121387f4..e94f0f73e045 100644 --- a/emulators/vmware2/Makefile +++ b/emulators/vmware2/Makefile @@ -52,6 +52,10 @@ BROKEN= "Systems prior to 400013 is out of support" BROKEN= "This software absolutely requires Linux procfs support" .endif +.if !exists(/sys/Makefile) +BROKEN= "Kernel source files required" +.endif + .if exists(${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net) .include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net" .endif @@ -65,6 +69,10 @@ post-patch: ${CP} ${FILESDIR}/Makefile ${WRKSRC} ${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile ${RM} -rf ${WRKSRC}/vmmon-only/linux/ +.if exists?(/sys/compat/linux/linux_ioctl.h) + ${PERL} -i -pe 's,i386(/linux/linux_ioctl\.h),compat$$1,' \ + ${WRKSRC}/vmnet-only/freebsd/vmnet_linux.c +.endif setoptions: ${SED} -e 's;@@PREFIX@@;${PREFIX};' \ -- cgit