|
From: <fe...@us...> - 2012-06-07 15:43:13
|
Revision: 151
http://ehs.svn.sourceforge.net/ehs/?rev=151&view=rev
Author: felfert
Date: 2012-06-07 15:43:04 +0000 (Thu, 07 Jun 2012)
Log Message:
-----------
- Fixed warning about including winsock2.h
Modified Paths:
--------------
trunk/ehs.cpp
trunk/samples/ehs_wsgate.cpp
trunk/securesocket.cpp
trunk/socket.cpp
Modified: trunk/ehs.cpp
===================================================================
--- trunk/ehs.cpp 2012-06-07 14:57:34 UTC (rev 150)
+++ trunk/ehs.cpp 2012-06-07 15:43:04 UTC (rev 151)
@@ -27,6 +27,10 @@
# include "config.h"
#endif
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+#endif
+
#include <pthread.h>
#include "ehs.h"
Modified: trunk/samples/ehs_wsgate.cpp
===================================================================
--- trunk/samples/ehs_wsgate.cpp 2012-06-07 14:57:34 UTC (rev 150)
+++ trunk/samples/ehs_wsgate.cpp 2012-06-07 15:43:04 UTC (rev 151)
@@ -27,6 +27,10 @@
# include "config.h"
#endif
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+#endif
+
#include <ehs.h>
#include <vector>
#include <sstream>
Modified: trunk/securesocket.cpp
===================================================================
--- trunk/securesocket.cpp 2012-06-07 14:57:34 UTC (rev 150)
+++ trunk/securesocket.cpp 2012-06-07 15:43:04 UTC (rev 151)
@@ -28,6 +28,11 @@
#endif
#ifdef COMPILE_WITH_SSL
+
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+#endif
+
#include "ehs.h"
#include "securesocket.h"
#include "debug.h"
Modified: trunk/socket.cpp
===================================================================
--- trunk/socket.cpp 2012-06-07 14:57:34 UTC (rev 150)
+++ trunk/socket.cpp 2012-06-07 15:43:04 UTC (rev 151)
@@ -27,6 +27,10 @@
# include "config.h"
#endif
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+#endif
+
/*
* Solaris 2.6 troubles
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|