diff options
author | Ben Pfaff <blp@cs.stanford.edu> | 2009-02-05 22:11:57 -0800 |
---|---|---|
committer | Ben Pfaff <blp@cs.stanford.edu> | 2009-02-05 22:11:57 -0800 |
commit | df1da811f288a89eb524a4176c6fd62bacfb954a (patch) | |
tree | bc617233a37d0161000ee67da694a5478a256781 | |
parent | fbd0c7d7d3017cd662cc4ae4a4a0a0b6cfb07980 (diff) | |
download | gnulib-df1da811f288a89eb524a4176c6fd62bacfb954a.tar.gz |
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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | m4/close.m4 | 2 | ||||
-rw-r--r-- | modules/close | 3 |
3 files changed, 12 insertions, 0 deletions
@@ -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 diff --git a/m4/close.m4 b/m4/close.m4 index fcc9fb1952..29d3abdd13 100644 --- a/m4/close.m4 +++ b/m4/close.m4 @@ -22,4 +22,6 @@ AC_DEFUN([gl_REPLACE_CLOSE], fi REPLACE_CLOSE=1 gl_REPLACE_FCLOSE + LIB_CLOSE="-lws2_32" + AC_SUBST([LIB_CLOSE]) ]) diff --git a/modules/close b/modules/close index bb852d4583..138be1b0fa 100644 --- a/modules/close +++ b/modules/close @@ -19,6 +19,9 @@ Makefile.am: Include: <unistd.h> +Link: +$(LIB_CLOSE) + License: LGPLv2+ |