diff options
author | cls%seawood.org <devnull@localhost> | 2000-03-02 15:58:02 +0000 |
---|---|---|
committer | cls%seawood.org <devnull@localhost> | 2000-03-02 15:58:02 +0000 |
commit | c39be6e6b6830c1d9ed6b95de90badcb864dbe3a (patch) | |
tree | a0d56b8911e1d9118b0782f0f9142a67c829de94 | |
parent | 503ab28f1ade1433a542a114cd9256f7cf7d2f54 (diff) | |
download | nss-hg-c39be6e6b6830c1d9ed6b95de90badcb864dbe3a.tar.gz |
Mingw32 fixes.
-rw-r--r-- | dbm/include/winfile.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dbm/include/winfile.h b/dbm/include/winfile.h index 8701f0a1e..1fd54d578 100644 --- a/dbm/include/winfile.h +++ b/dbm/include/winfile.h @@ -12,8 +12,13 @@ /* 32-bit stuff here */ #include <windows.h> #include <stdlib.h> +#ifdef __MINGW32__ +#include <sys/types.h> +#include <sys/stat.h> +#else #include <sys\types.h> #include <sys\stat.h> +#endif typedef struct DIR_Struct { void * directoryPtr; @@ -22,7 +27,7 @@ typedef struct DIR_Struct { #define _ST_FSTYPSZ 16 -#ifndef __BORLANDC__ +#if !defined(__BORLANDC__) && !defined(__GNUC__) typedef unsigned long mode_t; typedef long uid_t; typedef long gid_t; @@ -43,7 +48,7 @@ struct dirent { /* data from readdir() */ char d_name[_MAX_FNAME]; /* name of file */ }; -#ifndef __BORLANDC__ +#if !defined(__BORLANDC__) && !defined (__GNUC__) #define S_ISDIR(s) ((s) & _S_IFDIR) #endif |