Commit 0980566f by Doug Evans

(choose_tmpdir): Renamed from choose_temp_base.

#include <stdio.h>.

From-SVN: r11836
parent 6524f653
...@@ -17,7 +17,7 @@ License along with libiberty; see the file COPYING.LIB. If ...@@ -17,7 +17,7 @@ License along with libiberty; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ 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) #if ! defined (_WIN32) && ! defined (NO_SYS_FILE_H)
#include <sys/file.h> /* May get R_OK, etc. on some systems. */ #include <sys/file.h> /* May get R_OK, etc. on some systems. */
...@@ -29,6 +29,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -29,6 +29,8 @@ Boston, MA 02111-1307, USA. */
#define X_OK 1 #define X_OK 1
#endif #endif
#include <stdio.h> /* May get P_tmpdir. */
#ifdef IN_GCC #ifdef IN_GCC
#include "config.h" #include "config.h"
#include "gansidecl.h" #include "gansidecl.h"
...@@ -85,7 +87,7 @@ try (dir, base) ...@@ -85,7 +87,7 @@ try (dir, base)
The buffer for the result is obtained with xmalloc. */ The buffer for the result is obtained with xmalloc. */
char * char *
choose_temp_base () choose_tmpdir ()
{ {
char *base = 0; char *base = 0;
char *temp_filename; char *temp_filename;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment