1 diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/Makefile samba-3.0.25a/examples/libsmbclient/smbwrapper/Makefile
2 --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/Makefile 2006-01-25 00:46:42.000000000 +0100
3 +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/Makefile 2007-06-17 17:43:30.088457851 +0200
6 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
8 -LDFLAGS = -L/usr/local/samba/lib -L../../../source3/bin
9 +LDFLAGS = -L../../../source3/bin
11 SMBINCLUDE = -I../../../source/include
12 CFLAGS= -fpic -g -O0 $(DEFS) $(SMBINCLUDE)
13 diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.c samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.c
14 --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.c 2006-01-25 00:46:42.000000000 +0100
15 +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.c 2007-06-17 17:38:36.620376591 +0200
17 /*****************************************************
18 a wrapper for readlink() - needed for correct errno setting
19 *******************************************************/
20 -int smbw_readlink(const char *fname, char *buf, size_t bufsize)
21 +ssize_t smbw_readlink(const char *fname, char *buf, size_t bufsize)
25 diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.h samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.h
26 --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.h 2006-01-25 00:46:42.000000000 +0100
27 +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.h 2007-06-17 17:38:36.620376591 +0200
29 int smbw_close(int fd);
30 int smbw_fcntl(int fd, int cmd, long arg);
31 int smbw_access(const char *name, int mode);
32 -int smbw_readlink(const char *path, char *buf, size_t bufsize);
33 +ssize_t smbw_readlink(const char *path, char *buf, size_t bufsize);
34 int smbw_unlink(const char *fname);
35 int smbw_rename(const char *oldname, const char *newname);
36 int smbw_utime(const char *fname, void *buf);
37 diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.c samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.c
38 --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.c 2006-01-25 00:46:42.000000000 +0100
39 +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.c 2007-06-17 17:39:16.085693163 +0200
41 * function and smbw.c et al. Functions that return other than an
42 * integer value, however, MUST have their return value defined.
44 - off64_t smbw_lseek();
45 + /* off64_t smbw_lseek(); */
48 return (off_t) smbw_lseek(fd, offset, whence);
50 * function and smbw.c et al. Functions that return other than an
51 * integer value, however, MUST have their return value defined.
53 - off64_t smbw_lseek();
54 + /* off64_t smbw_lseek(); */
57 ret = smbw_lseek(fd, offset, whence);
58 diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.h samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.h
59 --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.h 2006-01-25 00:46:42.000000000 +0100
60 +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.h 2007-06-17 17:38:36.620376591 +0200
62 int (* unlink)(char *name);
63 int (* utime)(char *name, struct utimbuf *tvp);
64 int (* utimes)(char *name, struct timeval *tvp);
65 - int (* readlink)(char *path, char *buf, size_t bufsize);
66 + ssize_t (* readlink)(char *path, char *buf, size_t bufsize);
67 int (* rename)(char *oldname, char *newname);
68 int (* rmdir)(char *name);
69 int (* symlink)(char *topath, char *frompath);