databases/pgadmin3: unbreak with clang 9

ld: error: utils/sshTunnel.o: unable to find library from dependent library specifier: Ws2_32.lib

Reported by:	antoine (via bug 240629 exp-run)
Regressed by:	https://reviews.llvm.org/rL360984
This commit is contained in:
Jan Beich
2019-09-23 17:44:23 +00:00
parent f45575b26d
commit 8eb8622c15

View File

@@ -0,0 +1,12 @@
--- pgadmin/utils/sshTunnel.cpp.orig 2016-02-08 10:25:13 UTC
+++ pgadmin/utils/sshTunnel.cpp
@@ -19,7 +19,9 @@
#include "utils/sshTunnel.h"
#include "frm/frmMain.h"
+#ifdef WIN32
#pragma comment (lib, "Ws2_32.lib")
+#endif
typedef const char *(*inet_ntop_t) (int af, const void *src, char *dst, socklen_t size);