svn commit: samba r18499 - in branches/SAMBA_4_0/source/lib/replace: .

metze at samba.org metze at samba.org
Thu Sep 14 05:33:55 GMT 2006


Author: metze
Date: 2006-09-14 05:33:54 +0000 (Thu, 14 Sep 2006)
New Revision: 18499

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18499

Log:
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

Modified:
   branches/SAMBA_4_0/source/lib/replace/repdir_getdirentries.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/repdir_getdirentries.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/repdir_getdirentries.c	2006-09-14 05:13:20 UTC (rev 18498)
+++ branches/SAMBA_4_0/source/lib/replace/repdir_getdirentries.c	2006-09-14 05:33:54 UTC (rev 18499)
@@ -104,7 +104,13 @@
 	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) {



More information about the samba-cvs mailing list