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

(ITS#7156) definement missing in ldapsearch.c

Full_Name: Tobias Kick
Version: 2.4.28
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

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

#include <sys/time.h>