added compatibility with Watcom C

This commit is contained in:
Ryszard Glab
1999-05-07 08:45:10 +00:00
parent 1d33e28e73
commit 53e703c341

View File

@@ -24,6 +24,7 @@
#include <fcntl.h>
#include <io.h>
#include <errno.h>
#include <direct.h>
#if !defined(HAVE_POSIX_IO)
#define HAVE_POSIX_IO
@@ -251,7 +252,11 @@ void _fsCommit( int handle )
int _fsMkDir( char * name )
{
#if defined(HAVE_POSIX_IO)
#ifndef __WATCOMC__
return mkdir(name,S_IWUSR|S_IRUSR);
#else
return mkdir( name );
#endif
#else
return 0;
#endif