summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/config-win.h')
-rw-r--r--include/config-win.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/config-win.h b/include/config-win.h
index e0558ca4564..7a50f28c932 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -32,6 +32,7 @@ functions */
#endif
#include <sys/locking.h>
+#include <sys/stat.h> /* chmod() constants*/
#include <winsock2.h>
#include <math.h> /* Because of rint() */
#include <fcntl.h>
@@ -93,6 +94,15 @@ functions */
#define S_IROTH S_IREAD /* for my_lib */
+/*
+ Constants used by chmod. Note, that group/others is ignored
+ - because unsupported by Windows due to different access control model.
+*/
+#define S_IRWXU S_IREAD|S_IWRITE
+#define S_IRWXG 0
+#define S_IRWXO 0
+typedef int mode_t;
+
#ifdef __BORLANDC__
#define FILE_BINARY O_BINARY /* my_fopen in binary mode */
#define O_TEMPORARY 0