not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-/* This file exports one function: choose_temp_base. */
+/* This file exports one function: choose_tmpdir. */
#if ! defined (_WIN32) && ! defined (NO_SYS_FILE_H)
#include <sys/file.h> /* May get R_OK, etc. on some systems. */
#define X_OK 1
#endif
+#include <stdio.h> /* May get P_tmpdir. */
+
#ifdef IN_GCC
#include "config.h"
#include "gansidecl.h"
The buffer for the result is obtained with xmalloc. */
char *
-choose_temp_base ()
+choose_tmpdir ()
{
char *base = 0;
char *temp_filename;