[libsoup] win32: link with ws2_32 for htons



commit fff0baf87a3950d1f8e096cfc71b0bb6e180a452
Author: Kalev Lember <kalevlember gmail com>
Date:   Thu Mar 21 23:54:36 2013 +0100

    win32: link with ws2_32 for htons
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696354

 libsoup/Makefile.am |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am
index e99c8e6..d54a06a 100644
--- a/libsoup/Makefile.am
+++ b/libsoup/Makefile.am
@@ -4,6 +4,10 @@ EXTRA_DIST =
 
 include $(GLIB_MAKEFILE)
 
+if OS_WIN32
+LIBWS2_32 = -lws2_32
+endif
+
 INCLUDES =                             \
        -DG_LOG_DOMAIN=\"libsoup\"      \
        -DLOCALEDIR=\"$(localedir)\"    \
@@ -83,6 +87,7 @@ EXTRA_DIST += libsoup-2.4.sym
 
 libsoup_2_4_la_LIBADD =                        \
        $(GLIB_LIBS)                    \
+       $(LIBWS2_32)                    \
        $(XML_LIBS)                     \
        $(SQLITE_LIBS)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]