If mkstemp is missing, define the mkstemp macro is k5-platform.h, not autoconf.h
authorKen Raeburn <raeburn@mit.edu>
Wed, 27 Jun 2007 23:22:36 +0000 (23:22 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 27 Jun 2007 23:22:36 +0000 (23:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19643 dc483132-0cff-0310-8789-dd5450dbe970

src/configure.in
src/include/k5-platform.h

index 74b6163dea819219b0bdff242a2eea1b12366d3a..68a03d7d55703614064bec1568581b053b8ba167 100644 (file)
@@ -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)
index 1fe2116b97c9ac71538e92df7e35c51b683b9cca..de1b698d5604c57bb85b589ef63e5275bef242f9 100644 (file)
@@ -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 */