summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 10:12:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:32 -0500
commit2c3dc50953341c4f59cb46aed05be358dd9c3e81 (patch)
treeef981f87e63796baca3ac1751aab1730690c188d /source4/lib
parentbf071a91aabe50a26fb8a63e05a5e264b21b66ab (diff)
downloadsamba-2c3dc50953341c4f59cb46aed05be358dd9c3e81.tar.gz
samba-2c3dc50953341c4f59cb46aed05be358dd9c3e81.tar.bz2
samba-2c3dc50953341c4f59cb46aed05be358dd9c3e81.zip
r18456: Tru64 doesn't have getdents() so we don't need this ifdef's...
metze (This used to be commit 5af86eb3f07e26aead67ab0dd46576e0aefe8eb4)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/repdir_getdents.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source4/lib/replace/repdir_getdents.c b/source4/lib/replace/repdir_getdents.c
index eca1ecc9d5..07b9568dc1 100644
--- a/source4/lib/replace/repdir_getdents.c
+++ b/source4/lib/replace/repdir_getdents.c
@@ -118,11 +118,7 @@ long telldir(DIR *dir)
return d->seekpos + d->ofs;
}
-#ifdef _OSF_SOURCE
-int seekdir(DIR *dir, long ofs)
-#else
void seekdir(DIR *dir, long ofs)
-#endif
{
struct dir_buf *d = (struct dir_buf *)dir;
d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET);
@@ -131,9 +127,6 @@ void seekdir(DIR *dir, long ofs)
while (d->ofs < (ofs & (DIR_BUF_SIZE-1))) {
if (readdir(dir) == NULL) break;
}
-#ifdef _OSF_SOURCE
- return -1;
-#endif
}
void rewinddir(DIR *dir)