summaryrefslogtreecommitdiff
path: root/pc/gawkmisc.pc
diff options
context:
space:
mode:
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