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 3d87cd3d038b9068abcc6d761fc9d94a677946ac..2d07367adfee189afcfa19d49bb0b6c696477ab6 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 fcc9fb1952ab50419841dbb9269b955872b5cab5..29d3abdd1365850bfc885d15688ee86dd3dea81e 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 bb852d45836dda192f75a831009355cf3e90d638..138be1b0fa4d943ac23df16dd9edc954c3d2a228 100644 (file)
@@ -19,6 +19,9 @@ Makefile.am:
 Include:
 <unistd.h>
 
+Link:
+$(LIB_CLOSE)
+
 License:
 LGPLv2+