Fix compile and linking errors since last this code was tested
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sun, 13 Jan 2008 17:07:18 +0000 (12:07 -0500)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sun, 13 Jan 2008 17:07:18 +0000 (12:07 -0500)
(This used to be commit 2f432842442859f98ecd263464ce02821ab10fca)

examples/libsmbclient/Makefile
examples/libsmbclient/smbwrapper/Makefile
examples/libsmbclient/smbwrapper/wrapper.c

index 6500707e75ca1e583de96c6c546ad9ffa6e8c157..26b80575fb6c7c3e9382e5e0bdaac4f8140bd5d5 100644 (file)
@@ -13,7 +13,7 @@ CFLAGS = -O0 -g -I$(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
 LDFLAGS = -L/usr/local/samba/lib \
          -lldap -lkrb5 -lgssapi_krb5
 #LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
 LDFLAGS = -L/usr/local/samba/lib \
          -lldap -lkrb5 -lgssapi_krb5
 #LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
-LIBSMBCLIENT = -lsmbclient -ldl -lresolv
+LIBSMBCLIENT = -lwbclient -lsmbclient -ldl -lresolv
 
 TESTS= testsmbc \
        testacl \
 
 TESTS= testsmbc \
        testacl \
index c94ef8fa6afdd47674ab6d7956a7ab822fbd0a28..726435319f89eb3ba14174718f37894a6efecafa 100644 (file)
@@ -1,4 +1,4 @@
-LIBS = -lsmbclient -ldl
+LIBS = -lwbclient -lsmbclient -ldl
 DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 
 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
 DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 
 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
index 30f9037d53a144f62f153312bae31c9eebb50386..958e00636ea5428f455166e601ba3abe06c0f59e 100644 (file)
@@ -61,6 +61,7 @@
 #include <dirent.h>
 #include <signal.h>
 #include <stdarg.h>
 #include <dirent.h>
 #include <signal.h>
 #include <stdarg.h>
+#include <string.h>
 #ifdef __USE_GNU
 # define SMBW_USE_GNU
 #endif
 #ifdef __USE_GNU
 # define SMBW_USE_GNU
 #endif