Hello,

when building the current GIT Version 2.4.40 with Windows and MinGW/MSYS I get 3 errors:
C:/msys/1.0/openldap-2.4.40git/servers/slapd/slapadd.c:116: undefined reference
to `ftello'
slapadd.o: In function `slapadd':
C:/msys/1.0/openldap-2.4.40git/servers/slapd/slapadd.c:486: undefined reference
to `ftello'
libbackends.a(mdbmdb.o): In function `mdb_cursor_push':
C:/msys/1.0/openldap-2.4.40git/servers/slapd/back-mdb/./../../../libraries/liblm
db/mdb.c:4990: undefined reference to `GetFileSizeEx'
collect2: ld returned 1 exit status
make[2]: *** [slapd.exp] Error 1

Configure was:
configure --prefix=/mingw --enable-accesslog --with-tls --enable-syncprov

Regards,
Frank