# HG changeset patch # User Ben Pfaff # Date 1233900717 28800 # Node ID e1a7943b3c63f9f70eb20522ac90136c1211caf2 # Parent e7df8edd0e88bef1038ce380b84cd55342b9b44e 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-05 Ben Pfaff + + 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 still avoid unused-parameter warnings, but do it cleanly diff --git a/m4/close.m4 b/m4/close.m4 --- 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]) ]) diff --git a/modules/close b/modules/close --- a/modules/close +++ b/modules/close @@ -19,6 +19,9 @@ Include: +Link: +$(LIB_CLOSE) + License: LGPLv2+