summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbw.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-14 07:16:00 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-14 07:16:00 +0000
commitaa9dd697d41ed5bed1bddab519ea80df9e6f21f1 (patch)
treed805f4a2bde5b88b8c64be1ed254caa284a0fb83 /source/smbwrapper/smbw.c
parent8b9c0bad889d4f26987d87c54b4d8bf102af1744 (diff)
downloadsamba-aa9dd697d41ed5bed1bddab519ea80df9e6f21f1.tar.gz
samba-aa9dd697d41ed5bed1bddab519ea80df9e6f21f1.tar.xz
samba-aa9dd697d41ed5bed1bddab519ea80df9e6f21f1.zip
tridge, i had to put a #ifdef _STAT_VER_LINUX_OLD round a bit of code
that didn't have _STAT_VER_LINUX_OLD defined. maybe you want to sort this out properly...
Diffstat (limited to 'source/smbwrapper/smbw.c')
-rw-r--r--source/smbwrapper/smbw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c
index c0990b62b11..d9ff6daa05c 100644
--- a/source/smbwrapper/smbw.c
+++ b/source/smbwrapper/smbw.c
@@ -1414,10 +1414,12 @@ struct kernel_stat {
void xstat_convert(int vers, struct stat *st, struct kernel_stat *kbuf)
{
+#ifdef _STAT_VER_LINUX_OLD
if (vers == _STAT_VER_LINUX_OLD) {
memcpy(st, kbuf, sizeof(*st));
return;
}
+#endif
ZERO_STRUCTP(st);