From 2c4be1e08674667a919bd66129f3e3ed39b921dd Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 11 Mar 2011 15:49:22 +0000 Subject: 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 --- nslcd/common.c | 4 ---- nslcd/common.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'nslcd') 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); -- cgit v1.2.3