From: Tom Yu Date: Mon, 27 Feb 2012 18:31:50 +0000 (+0000) Subject: Patch from Richard Basch to work around Solaris 8 lacking isblank() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4d75811f329fdf893bd7bd5aff84dcfd37cdab89;p=krb5.git Patch from Richard Basch to work around Solaris 8 lacking isblank() ticket: 7074 target_version: 1.10.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25716 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/configure.in b/src/configure.in index 4c6ec8c18..1c8279b03 100644 --- a/src/configure.in +++ b/src/configure.in @@ -263,7 +263,7 @@ AC_CONFIG_HEADERS(include/autoconf.h, [echo timestamp > include/autoconf.stamp]) AC_PROG_LEX AC_C_CONST AC_HEADER_DIRENT -AC_CHECK_FUNCS(strdup setvbuf seteuid setresuid setreuid setegid setresgid setregid setsid flock fchmod chmod strftime strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64 mkstemp getusershell access getcwd srand48 srand srandom stat strchr strerror strerror_r timegm) +AC_CHECK_FUNCS(strdup setvbuf seteuid setresuid setreuid setegid setresgid setregid setsid flock fchmod chmod strftime strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64 mkstemp getusershell access getcwd srand48 srand srandom stat strchr strerror strerror_r timegm isblank) AC_CHECK_FUNC(mkstemp, [MKSTEMP_ST_OBJ= diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c index 217c9ce3a..6115bb7e6 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c @@ -39,9 +39,15 @@ #include #include -#if defined(NEED_ISBLANK_PROTO) && !defined(isblank) +#if !defined(isblank) && defined(HAVE_ISBLANK) +#if defined(NEED_ISBLANK_PROTO) extern int isblank(); #endif +#else /* isblank missing */ +#if !defined(isblank) +#define isblank isspace +#endif +#endif krb5_error_code krb5_ldap_get_db_opt(char *input, char **opt, char **val)