From 181cca7b094f0ab7b9189462ae20dfeec3f1e1b5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 27 Jun 2007 23:22:36 +0000 Subject: [PATCH] If mkstemp is missing, define the mkstemp macro is k5-platform.h, not autoconf.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19643 dc483132-0cff-0310-8789-dd5450dbe970 --- src/configure.in | 3 +-- src/include/k5-platform.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configure.in b/src/configure.in index 74b6163de..68a03d7d5 100644 --- a/src/configure.in +++ b/src/configure.in @@ -166,8 +166,7 @@ AC_CHECK_FUNC(mkstemp, MKSTEMP_OBJ=], [MKSTEMP_ST_OBJ='mkstemp.o' MKSTEMP_OBJ='$(OUTPRE)mkstemp.$(OBJEXT)' -EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_mkstemp" -AC_DEFINE(mkstemp,krb5int_mkstemp,[Define to krb5int_mkstemp if the OS does not provide it.])]) +EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_mkstemp"]) AC_SUBST(MKSTEMP_OBJ) AC_SUBST(MKSTEMP_ST_OBJ) AC_SUBST(EXTRA_SUPPORT_SYMS) diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h index 1fe2116b9..de1b698d5 100644 --- a/src/include/k5-platform.h +++ b/src/include/k5-platform.h @@ -835,6 +835,7 @@ k5_asprintf(char **ret, const char *format, ...) #ifndef HAVE_MKSTEMP extern int krb5int_mkstemp(char *); +#define mkstemp krb5int_mkstemp #endif #endif /* K5_PLATFORM_H */ -- 2.26.2