--- a/lib/filesystems.h
+++ b/lib/filesystems.h
@@ -56,6 +56,10 @@
 #include "nb_fs.h"
 #endif
 
+#ifdef WITH_SMBFS
+#include <netsmb/smb_lib.h>
+#endif
+
 /* get the definition of mount_<fs>_parseargs */
 #include "mount_cd9660.h"
 #include "mount_efs.h"
