[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8127) 32 bit windows build fails with mingw

This is a multi-part message in MIME format.

Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Give this a try; it's a patch vs RE24 but should be broadly
applicable.  Still investigating your trouble with GetFileSizeEx from

Which MinGW distribution are you using, exactly?

Emily Backes
Symas Corporation

Content-Type: text/x-diff;
Content-Disposition: attachment;
Content-Transfer-Encoding: 7bit

>From 330ee6483c404d7e993df41f55a490c7b34ea2bf Mon Sep 17 00:00:00 2001
From: Emily Backes <ebackes@symas.com>
Date: Thu, 5 Feb 2015 18:56:51 -0800
Subject: [PATCH] ftello compat for windows slapadd meter

 servers/slapd/slapadd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c
index 8cfdebd..29a3ff4 100644
--- a/servers/slapd/slapadd.c
+++ b/servers/slapd/slapadd.c
@@ -44,6 +44,10 @@ extern int slap_DN_strict;	/* dn.c */
 static char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
+#ifdef _WIN32
+#define ftello _ftelli64
 typedef struct Erec {
 	Entry *e;
 	unsigned long lineno;
Emily Backes
Symas Corporation