[git] NTBTLS - branch, master, updated. 33f3b5f298ded3c34b65bc08ee714294c9918411
by NIIBE Yutaka
cvs at cvs.gnupg.org
Fri Jan 20 04:29:23 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Not Too Bad TLS".
The branch, master has been updated
via 33f3b5f298ded3c34b65bc08ee714294c9918411 (commit)
from 876e1b298022b84277890036b84d3d94452c9a1e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 33f3b5f298ded3c34b65bc08ee714294c9918411
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Jan 20 12:28:35 2017 +0900
Fix ntbtls-cli.c for Windows.
* src/ntbtls-cli.c: Include files fix.
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
diff --git a/src/ntbtls-cli.c b/src/ntbtls-cli.c
index 46264cf..29b2784 100644
--- a/src/ntbtls-cli.c
+++ b/src/ntbtls-cli.c
@@ -25,10 +25,18 @@
#include <unistd.h>
#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#ifdef HAVE_W32_SYSTEM
+# define WIN32_LEAN_AND_MEAN
+# ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+# endif
+# include <windows.h>
+#else
+# include <sys/socket.h>
+# include <netinet/in.h>
+# include <arpa/inet.h>
+# include <netdb.h>
+#endif
#include "ntbtls.h"
-----------------------------------------------------------------------
Summary of changes:
src/ntbtls-cli.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
hooks/post-receive
--
Not Too Bad TLS
http://git.gnupg.org
More information about the Gnupg-commits
mailing list