From 2c3dc50953341c4f59cb46aed05be358dd9c3e81 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 13 Sep 2006 10:12:03 +0000 Subject: r18456: Tru64 doesn't have getdents() so we don't need this ifdef's... metze (This used to be commit 5af86eb3f07e26aead67ab0dd46576e0aefe8eb4) --- source4/lib/replace/repdir_getdents.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source4/lib') 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) -- cgit