diff options
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r-- | binutils/bucomm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 8cccd6b..68b191b 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -35,6 +35,9 @@ typedef long time_t; #endif #endif + +/* Ought to be defined in libiberty.h... */ +extern int mkstemps PARAMS ((char *, int)); /* Error reporting */ @@ -233,14 +236,14 @@ make_tempname (filename) #endif strcat (tmpname, "/"); strcat (tmpname, template); - close (mkstemp (tmpname)); + close (mkstemps (tmpname, 0)); *slash = c; } else { tmpname = xmalloc (sizeof (template)); strcpy (tmpname, template); - close (mkstemp (tmpname)); + close (mkstemps (tmpname, 0)); } return tmpname; } |