diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-03-11 16:49:22 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-03-11 16:49:22 +0100 |
commit | 2c4be1e08674667a919bd66129f3e3ed39b921dd (patch) | |
tree | 33748c78734c745829e6b7b2b99f980cc5ea898c /nslcd | |
parent | 7bd6de3921993855d280a42e8e5e81f7e2360ba3 (diff) |
move HOST_NAME_MAX fallback definition to header file
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1387 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/common.c | 4 | ||||
-rw-r--r-- | nslcd/common.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/nslcd/common.c b/nslcd/common.c index 6e81562..a4b0445 100644 --- a/nslcd/common.c +++ b/nslcd/common.c @@ -54,10 +54,6 @@ int mysnprintf(char *buffer,size_t buflen,const char *format, ...) return ((res<0)||(((size_t)res)>=buflen)); } -#ifndef HOST_NAME_MAX -#define HOST_NAME_MAX 255 -#endif /* not HOST_NAME_MAX */ - /* return the fully qualified domain name of the current host */ const char *getfqdn(void) { diff --git a/nslcd/common.h b/nslcd/common.h index 3b60c64..6399506 100644 --- a/nslcd/common.h +++ b/nslcd/common.h @@ -103,6 +103,11 @@ MUST_USE char *uid2dn(MYLDAP_SESSION *session,const char *uid,char *buf,size_t b /* try to update the shadowLastChange attribute of the entry if possible */ int update_lastchange(MYLDAP_SESSION *session,const char *userdn); +/* fallback definition of HOST_NAME_MAX */ +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 255 +#endif /* not HOST_NAME_MAX */ + /* these are the functions for initialising the database specific modules */ void alias_init(void); |