libldap cyrus.c and windows (RE24 release candidate)

Quanah Gibson-Mount <[email protected]>
Newsgroups gmane.network.openldap.devel
Message-ID <580452740372BEC2A938EA93@[192.168.1.39]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.