summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/plist/Date.h4
-rw-r--r--src/plist.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/plist/Date.h b/include/plist/Date.h
index 3cfb7d1..5113cf3 100644
--- a/include/plist/Date.h
+++ b/include/plist/Date.h
@@ -24,7 +24,11 @@
#include <plist/Node.h>
#include <ctime>
+#ifdef _MSC_VER
+#include <winsock2.h>
+#else
#include <sys/time.h>
+#endif
namespace PList
{
diff --git a/src/plist.h b/src/plist.h
index 4351ce4..178fb7c 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -30,11 +30,13 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/time.h>
#ifdef _MSC_VER
#pragma warning(disable:4996)
#pragma warning(disable:4244)
+#include <winsock2.h>
+#else
+#include <sys/time.h>
#endif
struct plist_data_s