diff Framework/PostgreSQL/PostgreSQLResult.cpp @ 176:0246923d4df9

trying to fix msvc builds with postgresql
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 12 Dec 2020 17:49:07 +0100
parents 275e14f57f1e
children 02ad3ea95fca
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLResult.cpp	Fri Dec 11 18:51:08 2020 +0100
+++ b/Framework/PostgreSQL/PostgreSQLResult.cpp	Sat Dec 12 17:49:07 2020 +0100
@@ -22,6 +22,13 @@
 #include "PostgreSQLIncludes.h"  // Must be the first
 #include "PostgreSQLResult.h"
 
+// Get "ntohl()" defined
+#if defined(_WIN32)
+#  include <winsock.h>
+#else
+#  include <arpa/inet.h>
+#endif
+
 #include "../Common/BinaryStringValue.h"
 #include "../Common/FileValue.h"
 #include "../Common/Integer64Value.h"