diff --git a/src/sbbs3/smbwrap.c b/src/sbbs3/smbwrap.c index 9eb2ce77feab02bb9a87ea771488ec4a51f6e731..0180c989c74cfac4355935eef3ad0b5c7a76a9d1 100644 --- a/src/sbbs3/smbwrap.c +++ b/src/sbbs3/smbwrap.c @@ -53,13 +53,6 @@ #include "smblib.h" /* SMBCALL */ #include "smbwrap.h" /* Verify prototypes */ -#ifdef _WIN32 -#define stat(f,s) _stat(f,s) -#define STAT struct _stat -#else -#define STAT struct stat -#endif - /****************************************************************************/ /* Convert ASCIIZ string to upper case */ /****************************************************************************/ @@ -111,7 +104,7 @@ long SMBCALL flength(char *filename) #else - STAT st; + struct stat st; if(access(filename,0)==-1) return(-1L); @@ -196,7 +189,7 @@ BOOL SMBCALL fexist(char *filespec) /****************************************************************************/ long SMBCALL filelength(int fd) { - STAT st; + struct stat st; if(fstat(fd, &st)!=0) return(-1L);