Having an issue with cyrus.c on windows.

I keep hitting:

openldap/libraries/libldap/cyrus.c: In function 'ldap_int_sasl_bind':
openldap/libraries/libldap/cyrus.c:392:19: error: 'HOST_NAME_MAX' undeclared (first use in this function); did you mean 'FILENAME_MAX'?
 char my_hostname[HOST_NAME_MAX + 1];
                  ^~~~~~~~~~~~~
                  FILENAME_MAX


Yet this code compiles just fine:

$ cat test.c
#include <limits.h>

void main() {
 char my_hostname[HOST_NAME_MAX + 1];
}


In cyrus.c, we have:

#ifdef HAVE_CYRUS_SASL
...
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
...


in config.log, it has:

#define HAVE_CYRUS_SASL 1

and

#define HAVE_LIMITS_H 1

So the limits.h include file should be included.

Any thoughts?

--Quanah

--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>


Reply via email to