svn rev #25745: branches/krb5-1-9/src/ plugins/kdb/ldap/libkdb_ldap/

tlyu@MIT.EDU tlyu at MIT.EDU
Wed Mar 7 23:31:31 EST 2012


http://src.mit.edu/fisheye/changelog/krb5/?cs=25745
Commit By: tlyu
Log Message:
ticket: 7101
subject: workaround for Solaris 8 lacking isblank
version_fixed: 1.9.4
status: resolved

Pull up r25716 from trunk

 ------------------------------------------------------------------------
 r25716 | tlyu | 2012-02-27 13:31:50 -0500 (Mon, 27 Feb 2012) | 6 lines

 ticket: 7074
 target_version: 1.10.1
 tags: pullup

 Patch from Richard Basch to work around Solaris 8 lacking isblank().


Changed Files:
U   branches/krb5-1-9/src/configure.in
U   branches/krb5-1-9/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c
Modified: branches/krb5-1-9/src/configure.in
===================================================================
--- branches/krb5-1-9/src/configure.in	2012-03-08 00:37:47 UTC (rev 25744)
+++ branches/krb5-1-9/src/configure.in	2012-03-08 04:31:30 UTC (rev 25745)
@@ -214,7 +214,7 @@
 AC_PROG_LEX
 AC_C_CONST
 AC_HEADER_DIRENT
-AC_CHECK_FUNCS(strdup setvbuf inet_ntoa inet_aton 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)
+AC_CHECK_FUNCS(strdup setvbuf inet_ntoa inet_aton 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 isblank)
 
 AC_CHECK_FUNC(mkstemp,
 [MKSTEMP_ST_OBJ=

Modified: branches/krb5-1-9/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c
===================================================================
--- branches/krb5-1-9/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c	2012-03-08 00:37:47 UTC (rev 25744)
+++ branches/krb5-1-9/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c	2012-03-08 04:31:30 UTC (rev 25745)
@@ -40,9 +40,15 @@
 #include <kdb5.h>
 #include <kadm5/admin.h>
 
-#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)



More information about the cvs-krb5 mailing list