#ifndef HAVE_TEMPNAM
#include <stdio.h>
-#include <stdlib.h>
+
+#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/unistd.h>
#include "lutil.h"
char *
-tempnam( const char *dir, const char *pfx )
+(tempnam)( const char *dir, const char *pfx )
{
char *s;