--- samba-3.4.3.orig/source3/client/mtab.c	2009-10-29 08:47:16.000000000 +0100
+++ samba-3.4.3/source3/client/mtab.c	2009-11-01 15:45:07.303242285 +0100
@@ -32,6 +32,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <sys/time.h>
+#include <sys/stat.h>
 #include <time.h>
 #include <fcntl.h>
 #include <mntent.h>
