summaryrefslogtreecommitdiff
path: root/src/gcrypt.h.in
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-06-29 17:14:35 +0000
committerWerner Koch <wk@gnupg.org>2010-06-29 17:14:35 +0000
commit6dc4847a38ce9617879273266fee371672a6d451 (patch)
tree0e42828cac0b6cbee98165b855f4fa4c5bdaddaf /src/gcrypt.h.in
parent839a8508b1a1d7bafb1930694e05f45fc560b47a (diff)
downloadlibgcrypt-6dc4847a38ce9617879273266fee371672a6d451.tar.gz
fixes for msvc compiler
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r--src/gcrypt.h.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index ff08d69b..33b52ff5 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -33,14 +33,15 @@
#if defined _WIN32 || defined __WIN32__
# include <winsock2.h>
# include <ws2tcpip.h>
+# include <time.h>
+ typedef long ssize_t;
#else
# include <sys/socket.h>
+# include <sys/time.h>
#endif /*!_WIN32*/
@FALLBACK_SOCKLEN_T@
-#include <sys/time.h>
-
/* This is required for error code compatibility. */
#define _GCRY_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT