Allow makefile build with VC2005 (trunk only)

This commit is contained in:
nethack.allison
2006-06-25 22:40:58 +00:00
parent d09c374239
commit 174b985267
7 changed files with 238 additions and 130 deletions

View File

@@ -99,6 +99,7 @@ void
getlock()
{
register int fd, c, ci, ct, ern;
int fcmask = FCMASK;
char tbuf[BUFSZ];
const char *fq_lock;
# if defined(MSDOS) && defined(NO_TERMS)
@@ -223,7 +224,7 @@ getlock()
}
gotlock:
fd = creat(fq_lock, FCMASK);
fd = creat(fq_lock, fcmask);
if (fd == -1) ern = errno;
unlock_file(HLOCK);
if(fd == -1) {