From ac24d381a5a9bc4611701bcbf956fe017bdddaeb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 14 Sep 2006 05:33:54 +0000 Subject: r18499: this hopefully lets the code compile on OpenBSD the prototype was fixed in this revision http://www.openbsd.org/cgi-bin/cvsweb/src/include/dirent.h.diff?r1=1.15&r2=1.16 so we'll need a configure test to find the prototype of telldir later metze (This used to be commit c4da3b43640368aff98e501b6ca7801821fd2fbd) --- source4/lib/replace/repdir_getdirentries.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/repdir_getdirentries.c b/source4/lib/replace/repdir_getdirentries.c index 33c63c3bcc..a9c1c1ce82 100644 --- a/source4/lib/replace/repdir_getdirentries.c +++ b/source4/lib/replace/repdir_getdirentries.c @@ -104,7 +104,13 @@ struct dirent *readdir(DIR *dir) return de; } +#define TELLDIR_TAKES_CONST_DIR + +#ifdef TELLDIR_TAKES_CONST_DIR +long telldir(const DIR *dir) +#else long telldir(DIR *dir) +#endif { struct dir_buf *d = (struct dir_buf *)dir; if (d->ofs >= d->nbytes) { -- cgit