]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/tempnam.c
Fix ldaps / TLS processing...
[openldap] / libraries / liblutil / tempnam.c
index 9aa21870b874f073dcf6b84067db9c69b4a17444..024f1fd725551a3180ead0dfa6bfb7ffc1b661a4 100644 (file)
@@ -1,10 +1,18 @@
+/* $OpenLDAP$ */
 #include "portable.h"
 
-#ifndef HAVE_TEMPNAME
+#ifndef HAVE_TEMPNAM
 
+#include <stdio.h>
+
+#include <ac/stdlib.h>
 #include <ac/string.h>
+#include <ac/unistd.h>
+
+#include "lutil.h"
 
-char *tempnam( char *dir, char *pfx )
+char *
+(tempnam)( const char *dir, const char *pfx )
 {
     char       *s;
 
@@ -35,4 +43,4 @@ char *tempnam( char *dir, char *pfx )
     return( s );
 }
 
-#endif /* nextstep */
+#endif /* TEMPNAM */