From 97035e2ebf9701731926305dc8e6aebff9a4c4a6 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 15 Feb 2002 13:21:12 +0000
Subject: [PATCH] Switched Win32 build to use POSIX stat/fstat functions
 instead of _stat/_fstat.

---
 src/sbbs3/smbwrap.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/sbbs3/smbwrap.c b/src/sbbs3/smbwrap.c
index 9eb2ce77fe..0180c989c7 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);
-- 
GitLab