diff compat.c @ 172:0fc45e386376

Get Dynamic Windows building with Watcom.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 01 Dec 2002 11:11:41 +0000
parents a5da1ac53b34
children 4e3407df0e38
line wrap: on
line diff
--- a/compat.c	Sat Nov 30 16:25:06 2002 +0000
+++ b/compat.c	Sun Dec 01 11:11:41 2002 +0000
@@ -70,7 +70,7 @@
 
 int makedir(char *path)
 {
-#if defined(__IBMC__) || (defined(__WIN32__) && !defined(__CYGWIN32__))
+#if defined(__IBMC__) || defined(__WATCOMC__) || (defined(__WIN32__) && !defined(__CYGWIN32__))
 	return mkdir(path);
 #else
 	return mkdir(path,S_IRWXU);
@@ -79,7 +79,7 @@
 
 void nonblock(int fd)
 {
-#ifdef __IBMC__
+#if defined(__OS2__) && !defined(__EMX__)
 	static int _nonblock = 1;
 
 	ioctl(fd, FIONBIO, (char *)&_nonblock, sizeof(_nonblock));
@@ -94,7 +94,7 @@
 
 void block(int fd)
 {
-#ifdef __IBMC__
+#if defined(__OS2__) && !defined(__EMX__)
 	static int _nonblock = 0;
 
 	ioctl(fd, FIONBIO, (char *)&_nonblock, sizeof(_nonblock));
@@ -631,7 +631,7 @@
 /* Sharable fopen() and fclose() calls. */
 FILE *fsopen(char *path, char *modes)
 {
-#if defined(__OS2__) || defined(__WIN32__)
+#if (defined(__OS2__) && !defined(__WATCOMC__)) || defined(__WIN32__)
 	int z;
 
 	if(!FSIRoot)