]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/tempnam.c
All implementations of lutil_lockf (aka ldap_lockf) block until
[openldap] / libraries / liblutil / tempnam.c
index 9aa21870b874f073dcf6b84067db9c69b4a17444..d4aa9cc2390a3bdea8c31960b1451d591c29e108 100644 (file)
@@ -1,10 +1,16 @@
 #include "portable.h"
 
-#ifndef HAVE_TEMPNAME
+#ifndef HAVE_TEMPNAM
 
+#include <stdio.h>
+#include <stdlib.h>
 #include <ac/string.h>
+#include <ac/unistd.h>
 
-char *tempnam( char *dir, char *pfx )
+#include "lutil.h"
+
+char *
+tempnam( const char *dir, const char *pfx )
 {
     char       *s;
 
@@ -35,4 +41,4 @@ char *tempnam( char *dir, char *pfx )
     return( s );
 }
 
-#endif /* nextstep */
+#endif /* TEMPNAM */