From 523687115d7786f473834d52d07f567a46c37b07 Mon Sep 17 00:00:00 2001
From: John Dunn <john.dunn@qsc.com>
Date: Fri, 10 Aug 2018 09:37:43 -0600
Subject: [PATCH] fix win32 build

---
 src/init.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/init.c b/src/init.c
index f9422430..36eb19fd 100644
--- a/src/init.c
+++ b/src/init.c
@@ -28,12 +28,21 @@
 #include "libssh/poll.h"
 #include "libssh/threads.h"
 
+
+
 #ifdef _WIN32
 #include <winsock2.h>
-#endif
-
+#define CONSTRUCTOR_ATTRIBUTE 
+#define DESTRUCTOR_ATTRIBUTE
+#else
 #define CONSTRUCTOR_ATTRIBUTE __attribute__((constructor))
 #define DESTRUCTOR_ATTRIBUTE __attribute__((destructor))
+#endif
+
+
+
+
+
 
 /* Declare static mutex */
 static SSH_MUTEX ssh_init_mutex = SSH_MUTEX_STATIC_INIT;
-- 
2.14.1.windows.1

