From 56da8ce661eaf5b6555db9be3a572cf27ce8894f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 20 Jun 2007 03:53:37 +0000 Subject: Move (BSD-licensed) mkstemp from libdb2 to libkrb5support, and rename the function to krb5int_mkstemp. Generate the symbol export list for libkrb5support at build time. Declare krb5int_mkstemp in k5-platform.h. Change cc_file.c to use mkstemp unconditionally. Make libdb2.so (built for testing only) link against the libkrb5support, and use krb5int_mkstemp if mkstemp is not available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19600 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-platform.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/k5-platform.h') diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h index 6cf4465066..fe248b3480 100644 --- a/src/include/k5-platform.h +++ b/src/include/k5-platform.h @@ -832,5 +832,8 @@ k5_asprintf(char **ret, const char *format, ...) } #endif +#ifndef HAVE_MKSTEMP +extern int krb5int_mkstemp(char *); +#endif #endif /* K5_PLATFORM_H */ -- cgit