summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbwrapper/smbw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index c0990b62b1..d9ff6daa05 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/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);