summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/wrapped.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper/wrapped.c')
-rw-r--r--source3/smbwrapper/wrapped.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c
index cf132b31e3..291da8301f 100644
--- a/source3/smbwrapper/wrapped.c
+++ b/source3/smbwrapper/wrapped.c
@@ -722,14 +722,23 @@
#endif
#ifdef real_seekdir
- void seekdir(DIR *dir, off_t offset)
+#if SEEKDIR_RETURNS_VOID
+ void
+#else
+ int
+#endif
+seekdir(DIR *dir, off_t offset)
{
if (smbw_dirp(dir)) {
smbw_seekdir(dir, offset);
- return;
+ goto done;
}
real_seekdir(dir, offset);
+ done:
+#ifndef SEEKDIR_RETURNS_VOID
+ return 0;
+#endif
}
#endif