diff options
author | Ian Lance Taylor <ian@airs.com> | 2000-02-22 15:59:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2000-02-22 15:59:20 +0000 |
commit | e2eaf477991014a67bc122c3225f6a3fe6d1a8e6 (patch) | |
tree | 5937dcfd1baa6d55a635fde513e946dc33a05ca3 /libiberty/choose-temp.c | |
parent | 252b5132c753830d5fd56823373aed85f2a0db63 (diff) | |
download | gdb-e2eaf477991014a67bc122c3225f6a3fe6d1a8e6.zip gdb-e2eaf477991014a67bc122c3225f6a3fe6d1a8e6.tar.gz gdb-e2eaf477991014a67bc122c3225f6a3fe6d1a8e6.tar.bz2 |
import libiberty from egcs
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r-- | libiberty/choose-temp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c index 49c7386..826d818 100644 --- a/libiberty/choose-temp.c +++ b/libiberty/choose-temp.c @@ -19,9 +19,6 @@ Boston, MA 02111-1307, USA. */ /* This file exports two functions: choose_temp_base and make_temp_file. */ -/* This file lives in at least two places: libiberty and gcc. - Don't change one without the other. */ - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -34,6 +31,9 @@ Boston, MA 02111-1307, USA. */ #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif +#ifdef HAVE_STRING_H +#include <string.h> +#endif #ifdef HAVE_SYS_FILE_H #include <sys/file.h> /* May get R_OK, etc. on some systems. */ #endif @@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA. */ extern int mkstemps (); #ifndef IN_GCC -#if defined (__MSDOS__) || defined (_WIN32) +#if defined (__MSDOS__) || (defined (_WIN32) && ! defined (__CYGWIN__) && ! defined (_UWIN)) #define DIR_SEPARATOR '\\' #endif #endif @@ -145,7 +145,7 @@ choose_temp_base () char * make_temp_file (suffix) - char *suffix; + const char *suffix; { char *base = 0; char *temp_filename; |