diff options
author | Alan Modra <amodra@bigpond.net.au> | 2007-01-10 13:36:34 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2007-01-10 13:36:34 +0000 |
commit | f25d4ff93494d5ed05c47f280f7711853eacec0f (patch) | |
tree | f16e2a9d46eba8b2592fe609d13ab861269135e2 /binutils/bucomm.h | |
parent | d99bbfc360207608a2e1730f44c5a3c1bdb8da12 (diff) | |
download | binutils-redhat-f25d4ff93494d5ed05c47f280f7711853eacec0f.tar.gz |
* bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
* bucomm.c (template_in_dir): New function, split out from..
(make_tempname): ..here. Open the file with O_EXCL if !HAVE_MKSTEMP.
(make_tempdir): Use template_in_dir. Handle directory creation
when !HAVE_MKDTEMP.
* objcopy.c (MKDIR): Don't define.
(copy_archive): Use make_tempdir when !HAVE_MKDTEMP too. Fix
error message.
Diffstat (limited to 'binutils/bucomm.h')
-rw-r--r-- | binutils/bucomm.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/binutils/bucomm.h b/binutils/bucomm.h index 99dbcfca00..c46932d270 100644 --- a/binutils/bucomm.h +++ b/binutils/bucomm.h @@ -200,9 +200,7 @@ int display_info (void); void print_arelt_descr (FILE *, bfd *, bfd_boolean); char *make_tempname (char *); -#if defined(HAVE_MKDTEMP) char *make_tempdir (char *); -#endif bfd_vma parse_vma (const char *, const char *); |