git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8516 
91ce42f0-d328-0410-95d8-
f526ca767f89
 
 LIBS_BACULA := \
         $(LIBDIR)/libbacula.a
 
+LIBS_NETWORK := -lwsock32
+
 HAVES := \
         -DHAVE_WIN32 \
         -DHAVE_MINGW \
 
 
 ALL_OBJS = $(CONSOLE_OBJS)
 
-CONSOLE_LIBS = \
-       -lwsock32
+CONSOLE_LIBS = $(LIBS_NETWORK) 
 
 ######################################################################
 
 
 
 DIRD_LIBS = \
        $(LIBS_PTHREADS) \
+       $(LIBS_NETWORK) \
        -lole32 \
        -loleaut32 \
-       -lwsock32 \
        -luuid \
        -lcomctl32
 
 
 FILED_LIBS = \
        $(LIBS_PTHREADS) \
        $(LIBS_ZLIB) \
+        $(LIBS_NETWORK) \
        -lole32 \
        -loleaut32 \
-       -lwsock32 \
        -luuid \
        -lcomctl32
 
 
        $(LIBS_CRYPTO) \
        $(LIBS_PTHREADS) \
        $(LIBS_ZLIB) \
-       -lwsock32 \
+        $(LIBS_NETWORK) \
        -lole32 \
        -loleaut32 \
        -luuid
 
 
 LIBS_STORED = \
        $(LIBS_PTHREADS) \
+        $(LIBS_NETWORK) \
        -lole32 \
        -loleaut32 \
-       -lwsock32 \
        -luuid \
        -lcomctl32
 
 
 
 CONSOLE_LIBS = \
        $(LIBS_WX) \
+        $(LIBS_NETWORK) \
        -lcomctl32 \
-       -lwsock32 \
        -lole32 \
        -loleaut32 \
        -luuid