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
This commit is contained in:
Kenneth J Davis 2009-04-25 16:26:57 +00:00
parent 31bc1f6149
commit 58de498fca

View File

@ -162,7 +162,11 @@ typedef struct ftime ftime;
#else #else
typedef struct typedef struct
{ {
#if defined(__WATCOMC__) && __WATCOMC__ < 1280
unsigned short date, time; unsigned short date, time;
#else
unsigned date, time;
#endif
} ftime; } ftime;
#endif #endif
@ -1001,7 +1005,11 @@ BYTE far * readfile(COUNT drive, BYTE * srcPath, BYTE * rootPath,
struct stat fstatbuf; struct stat fstatbuf;
BYTE far *bufptr; BYTE far *bufptr;
BYTE far *buffer; BYTE far *buffer;
#if defined(__WATCOMC__) && __WATCOMC__ < 1280
UWORD theseg; UWORD theseg;
#else
unsigned theseg;
#endif
strcpy(source, srcPath); strcpy(source, srcPath);
if (rootPath != NULL) /* trick for comspec */ if (rootPath != NULL) /* trick for comspec */