changeset 11113:e1a7943b3c63

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.
author Ben Pfaff <blp@cs.stanford.edu>
date Thu, 05 Feb 2009 22:11:57 -0800
parents e7df8edd0e88
children ecdf003aa29f
files ChangeLog m4/close.m4 modules/close
diffstat 3 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/m4/close.m4
+++ b/m4/close.m4
@@ -22,4 +22,6 @@
   fi
   REPLACE_CLOSE=1
   gl_REPLACE_FCLOSE
+  LIB_CLOSE="-lws2_32"
+  AC_SUBST([LIB_CLOSE])
 ])
--- a/modules/close
+++ b/modules/close
@@ -19,6 +19,9 @@
 Include:
 <unistd.h>
 
+Link:
+$(LIB_CLOSE)
+
 License:
 LGPLv2+