Fix link errors on Windows when close module is used.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 6 Feb 2009 06:11:57 +0000 (22:11 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 6 Feb 2009 06:11:57 +0000 (22:11 -0800)
* modules/close: Add $(LIB_CLOSE) to Link section.
* m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
$(LIB_CLOSE) on Windows.

ChangeLog
m4/close.m4
modules/close

index 3d87cd3..2d07367 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-05  Ben Pfaff  <blp@gnu.org>
+
+       Fix link errors on Windows when close module is used.
+       * modules/close: Add $(LIB_CLOSE) to Link section.
+       * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
+       $(LIB_CLOSE) on Windows.
+
 2009-02-05  Jim Meyering  <meyering@redhat.com>
 
        still avoid unused-parameter warnings, but do it cleanly
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])
 ])
index bb852d4..138be1b 100644 (file)
@@ -19,6 +19,9 @@ Makefile.am:
 Include:
 <unistd.h>
 
+Link:
+$(LIB_CLOSE)
+
 License:
 LGPLv2+