From 58de498fcaa4788a0f94b0516efcce8df79795ae Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Sat, 25 Apr 2009 16:26:57 +0000 Subject: [PATCH] Bart's patch to fix compile with OW1.8 git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1367 6ac86273-5f31-0410-b378-82cca8765d1b --- sys/sys.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/sys.c b/sys/sys.c index d9ce845..c8bf6df 100644 --- a/sys/sys.c +++ b/sys/sys.c @@ -162,7 +162,11 @@ typedef struct ftime ftime; #else typedef struct { +#if defined(__WATCOMC__) && __WATCOMC__ < 1280 unsigned short date, time; +#else + unsigned date, time; +#endif } ftime; #endif @@ -1001,7 +1005,11 @@ BYTE far * readfile(COUNT drive, BYTE * srcPath, BYTE * rootPath, struct stat fstatbuf; BYTE far *bufptr; BYTE far *buffer; +#if defined(__WATCOMC__) && __WATCOMC__ < 1280 UWORD theseg; +#else + unsigned theseg; +#endif strcpy(source, srcPath); if (rootPath != NULL) /* trick for comspec */