[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.

--Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hello,

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

Which MinGW distribution are you using, exactly?

-- 
Emily Backes
Symas Corporation
ebackes@symas.com

--Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q
Content-Type: text/x-diff;
 name="0001-ftello-compat-for-windows-slapadd-meter.patch"
Content-Disposition: attachment;
 filename="0001-ftello-compat-for-windows-slapadd-meter.patch"
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
+#endif 
+
 typedef struct Erec {
 	Entry *e;
 	unsigned long lineno;
-- 
Emily Backes
Symas Corporation
ebackes@symas.com


--Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q--