]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/tempnam.c
fix flag on formatMessage to not allocate buffer
[openldap] / libraries / liblutil / tempnam.c
index cdd5385a2e3fc3d57410a1bc2263a6cefb6a1eeb..61d9435322eb3772794d6cf69b144829a6318da4 100644 (file)
@@ -2,15 +2,16 @@
 
 #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 +42,4 @@ tempnam( char *dir, char *pfx )
     return( s );
 }
 
-#endif /* nextstep */
+#endif /* TEMPNAM */