diff options
-rw-r--r-- | source4/lib/replace/repdir/repdir.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/replace/repdir/repdir.c b/source4/lib/replace/repdir/repdir.c index 07b9568dc1..2f8264000b 100644 --- a/source4/lib/replace/repdir/repdir.c +++ b/source4/lib/replace/repdir/repdir.c @@ -118,7 +118,11 @@ 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); @@ -127,6 +131,9 @@ void seekdir(DIR *dir, long ofs) while (d->ofs < (ofs & (DIR_BUF_SIZE-1))) { if (readdir(dir) == NULL) break; } +#ifdef _OSF_SOURCE + return -1; +#else } void rewinddir(DIR *dir) |