summaryrefslogtreecommitdiff
path: root/src/assuan-socket.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-11-01 14:57:12 +0000
committerWerner Koch <wk@gnupg.org>2010-11-01 14:57:12 +0000
commit8fbda4494c424a6343ece3a0850372a2e457d641 (patch)
tree41d5c484f2b0241b19070b45c96dcd194f290451 /src/assuan-socket.c
parent03efb5f119b0d1f6b3aff36118b052a1fd804b78 (diff)
downloadlibassuan-8fbda4494c424a6343ece3a0850372a2e457d641.tar.gz
Changes to allow building the CE version with MSC.
Diffstat (limited to 'src/assuan-socket.c')
-rw-r--r--src/assuan-socket.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/assuan-socket.c b/src/assuan-socket.c
index ca0609a..937ff56 100644
--- a/src/assuan-socket.c
+++ b/src/assuan-socket.c
@@ -24,16 +24,18 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_W32_SYSTEM
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#include <wincrypt.h>
-#include <io.h>
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+# include <wincrypt.h>
+# include <io.h>
#else
-#include <sys/types.h>
-#include <sys/socket.h>
+# include <sys/types.h>
+# include <sys/socket.h>
#endif
#include <errno.h>
-#include <sys/stat.h>
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
#include <fcntl.h>
#include <assert.h>
@@ -53,6 +55,10 @@
#endif
#ifdef HAVE_W32_SYSTEM
+#ifndef S_IRUSR
+# define S_IRUSR 0
+# define S_IWUSR 0
+#endif
#ifndef S_IRGRP
# define S_IRGRP 0
# define S_IWGRP 0