Fix link errors on Windows when close module is used.
[gnulib.git] / m4 / close.m4
index fcc9fb1..29d3abd 100644 (file)
@@ -22,4 +22,6 @@ AC_DEFUN([gl_REPLACE_CLOSE],
   fi
   REPLACE_CLOSE=1
   gl_REPLACE_FCLOSE
+  LIB_CLOSE="-lws2_32"
+  AC_SUBST([LIB_CLOSE])
 ])