changeset 1585:0576c5444587

Oops fallback dwstat didn't work quite right in that last commit.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 27 Jan 2012 18:03:09 +0000
parents 1fb62c442283
children 021d2966f84d
files compat.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/compat.h	Fri Jan 27 17:58:04 2012 +0000
+++ b/compat.h	Fri Jan 27 18:03:09 2012 +0000
@@ -152,7 +152,6 @@
 #else
 #include <dir.h>
 #include <dirent.h>
-#define dwstat stat
 #endif
 
 #include <stdarg.h>
@@ -333,6 +332,11 @@
 typedef int socklen_t;
 #endif
 
+/* If dwstat didn't otherwise get defined */
+#ifndef dwstat
+#define dwstat stat
+#endif
+
 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0)
 
 char * API vargs(char *buf, int len, char *format, ...);