summaryrefslogtreecommitdiffstats
path: root/src/include/k5-platform.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-06-20 03:53:37 +0000
committerKen Raeburn <raeburn@mit.edu>2007-06-20 03:53:37 +0000
commit56da8ce661eaf5b6555db9be3a572cf27ce8894f (patch)
tree3c8aab6089766c909fb4bf222e2bbda438056143 /src/include/k5-platform.h
parent86e638b30cb0c56e9d0fd0b213be0696191eb297 (diff)
downloadkrb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.tar.gz
krb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.tar.xz
krb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.zip
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
Diffstat (limited to 'src/include/k5-platform.h')
-rw-r--r--src/include/k5-platform.h3
1 files changed, 3 insertions, 0 deletions
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 */