Re: libldap cyrus.c and windows (RE24 release candidate)

Howard Chu <[email protected]>
Newsgroups gmane.network.openldap.devel
Message-ID <[email protected]>
Quanah Gibson-Mount wrote:
> 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.

And are they defined in portable.h?


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/
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.