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