[NeoStats-Devel] [Commits] r2775 - in trunk: include modules/statserv

[email protected] Thu, 25 Aug 2005 08:14:29 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Thu Aug 25 06:14:26 2005
New Revision: 2775

Modified:
   trunk/include/configwin32.h
   trunk/modules/statserv/htmlstats.c
Log:
fix WIN32 dependency in statserv

Modified: trunk/include/configwin32.h
==============================================================================
--- trunk/include/configwin32.h	(original)
+++ trunk/include/configwin32.h	Thu Aug 25 06:14:26 2005
@@ -537,8 +537,12 @@
 #define access _access
 #define getpid GetCurrentProcessId
 #include <direct.h>
-//#define S_IWUSR _S_IWRITE
-//#define S_IRUSR _S_IREAD
+#define S_IWUSR _S_IWRITE
+#define S_IRUSR _S_IREAD
+#define S_IWGRP _S_IWRITE
+#define S_IRGRP _S_IREAD
+#define S_IWOTH _S_IWRITE
+#define S_IROTH _S_IREAD
 #define S_ISDIR(mode) ((mode) & _S_IFDIR ? 1 : 0)
 #define S_ISREG(mode) ((mode) & _S_IFREG ? 1 : 0)
 #define R_OK 04

Modified: trunk/modules/statserv/htmlstats.c
==============================================================================
--- trunk/modules/statserv/htmlstats.c	(original)
+++ trunk/modules/statserv/htmlstats.c	Thu Aug 25 06:14:26 2005
@@ -715,10 +715,8 @@
 	}
 	os_fclose( tpl );
 	os_fclose( opf );
-#ifndef WIN32
     /* update the umode so others can read it and owner can overwrite it */
     chmod(StatServ.htmlpath, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
-#endif /* WIN32 */
 }
 
 /** @brief HTMLOutputTimer