diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-26 17:55:02 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-26 17:55:02 +0000 |
commit | 0088367917bdcc423b44f279df4d83e2de932a23 (patch) | |
tree | bec6e22d59aabeb5d9697390a2138b420a0f69d8 | |
parent | 2eb75f1c13d22616f9b84f801cc935ffaa2434a7 (diff) |
have a fallback value for HOST_NAME_MAX if it is not defined
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@569 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/cfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c index b6fb66d..c5b0bf1 100644 --- a/nslcd/cfg.c +++ b/nslcd/cfg.c @@ -140,6 +140,10 @@ static void add_uri(const char *filename,int lnr, cfg->ldc_uris[i+1]=NULL; } +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 255 +#endif /* not HOST_NAME_MAX */ + /* return the domain name of the current host we return part of the structure that is retured by gethostbyname() so there should be no need to free() this entry, however we should |