summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-07 06:15:08 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-07 06:15:08 +0000
commitd2856b2dab5440e184be8d96807a08ce211f39ab (patch)
treed38506d7fcc219bd2a501f1d8178dbc068415fbd /source3/smbwrapper
parent002a9fe6342c1d62f273634db484ac93db647ca9 (diff)
downloadsamba-d2856b2dab5440e184be8d96807a08ce211f39ab.tar.gz
samba-d2856b2dab5440e184be8d96807a08ce211f39ab.tar.bz2
samba-d2856b2dab5440e184be8d96807a08ce211f39ab.zip
test whether seekdir() returns void or not
(This used to be commit 4dbfec81b2c67f2d36b26685a631001738d9569f)
Diffstat (limited to 'source3/smbwrapper')
-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