summaryrefslogtreecommitdiffstats
path: root/src/plist.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-05-13 20:23:19 +0200
committerGravatar Nikias Bassen2023-05-13 20:23:19 +0200
commitff0010080bbab16ec7b12b7f71e958d1e4f6f94b (patch)
tree2e5a2781651907bc2a4932dfd2a2f8d74a66d8c6 /src/plist.h
parentaf51970e6b1b9d9e6c8a925b040420e465bc2326 (diff)
downloadlibplist-ff0010080bbab16ec7b12b7f71e958d1e4f6f94b.tar.gz
libplist-ff0010080bbab16ec7b12b7f71e958d1e4f6f94b.tar.bz2
Windows: Use winsock2.h instead of sys/time.h when using MSVC
Diffstat (limited to 'src/plist.h')
-rw-r--r--src/plist.h4
1 files changed, 3 insertions, 1 deletions
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