Full_Name: Tobias Kick Version: 2.4.28 OS: MinGW URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (94.16.0.17)
When configured in portable.h #define HAVE_SYS_TIME_H 1
the compiler brings the error:
make[2]: Entering directory `/mingw64/tmp/openldap-2.4.28/clients/tools' ../../build/mkversion -v "2.4.28" -s ldapsearch > ldsversion.c gcc -g -O2 -I../../include -I../../include -c -o ldapsearch.o ldapsearch.c ldapsearch.c: In function 'dosearch': ldapsearch.c:1379:17: error: storage size of 'tv' isn't known ldapsearch.c:1380:17: error: storage size of 'tv_timelimit' isn't known make[2]: *** [ldapsearch.o] Error 1 make[2]: Leaving directory `/mingw64/tmp/openldap-2.4.28/clients/tools' make[1]: *** [all-common] Error 1 make[1]: Leaving directory `/mingw64/tmp/openldap-2.4.28/clients' make: *** [all-common] Error 1
It seems that in ldapsearch.c a ifdef-statement for HAVE_SYS_TIME_H is missing like this:
#ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif