(Fopen_network_stream)[WINDOWSNT]: Ensure Windows
authorRichard M. Stallman <rms@gnu.org>
Sat, 8 Jun 1996 00:14:31 +0000 (00:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 8 Jun 1996 00:14:31 +0000 (00:14 +0000)
socket library is loaded if available.

src/process.c

index a5eba6c..8e53378 100644 (file)
@@ -1634,6 +1634,11 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
   int retry = 0;
   int count = specpdl_ptr - specpdl;
 
+#ifdef WINDOWSNT
+  /* Ensure socket support is loaded if available. */
+  init_winsock (TRUE);
+#endif
+
   GCPRO4 (name, buffer, host, service);
   CHECK_STRING (name, 0);
   CHECK_STRING (host, 0);