Skip to content

Commit

Permalink
Work around lack of isblank() on Solaris 8
Browse files Browse the repository at this point in the history
(cherry picked from commit 4d75811)

ticket: 7175 (new)
version_fixed: 1.8.7
status: resolved
  • Loading branch information
tlyu committed Jun 15, 2012
1 parent 65ff029 commit f2ffc14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ AC_PROG_AWK
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 lstat 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 lstat access getcwd srand48 srand srandom stat strchr strerror strerror_r isblank)

AC_CHECK_FUNC(mkstemp,
[MKSTEMP_ST_OBJ=
Expand Down
8 changes: 7 additions & 1 deletion src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f2ffc14

Please sign in to comment.