summaryrefslogtreecommitdiff
path: root/pc/gawkmisc.pc
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2014-04-13 14:30:56 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2014-04-13 14:30:56 -0400
commit94e3f93395de538d73826e128281a3ea9591a5a9 (patch)
tree45257e4b024537c5e0e5a3037a99ea9765583c99 /pc/gawkmisc.pc
parentc4300d657ba49db0b6d0f0884f41a29622edc58b (diff)
parenta4b59faf911743b30f2e6e979c4f9c1ea0669ac3 (diff)
downloadgawk-94e3f93395de538d73826e128281a3ea9591a5a9.tar.gz
Merge branch 'master' into select
Diffstat (limited to 'pc/gawkmisc.pc')
-rw-r--r--pc/gawkmisc.pc31
1 files changed, 17 insertions, 14 deletions
diff --git a/pc/gawkmisc.pc b/pc/gawkmisc.pc
index c811f647..239f3f8f 100644
--- a/pc/gawkmisc.pc
+++ b/pc/gawkmisc.pc
@@ -715,20 +715,6 @@ dlsym (void *handle, const char *name)
}
#endif /* DYNAMIC */
-
-void
-init_sockets(void)
-{
-#ifdef HAVE_SOCKETS
- WSADATA winsockData;
- int errcode;
-
- if ((errcode = WSAStartup (0x101, &winsockData)) != 0
- || winsockData.wVersion != 0x101)
- fatal(_("cannot start Winsock (%d)"), errcode);
-#endif
-}
-
#ifdef HAVE_SOCKETS
int
socket_to_fd(SOCKET s)
@@ -864,6 +850,23 @@ w32_shutdown (int fd, int how)
#endif /* __MINGW32__ */
+#if defined(__DJGPP__) || defined(__MINGW32__)
+
+void
+init_sockets(void)
+{
+#ifdef HAVE_SOCKETS
+ WSADATA winsockData;
+ int errcode;
+
+ if ((errcode = WSAStartup (0x101, &winsockData)) != 0
+ || winsockData.wVersion != 0x101)
+ fatal(_("cannot start Winsock (%d)"), errcode);
+#endif
+}
+
+#endif /* __DJGPP__ || __MINGW32__ */
+
#ifdef __DJGPP__
int