aboutsummaryrefslogtreecommitdiff
path: root/binutils/bucomm.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-10-13 09:43:29 +0000
committerNick Clifton <nickc@redhat.com>2006-10-13 09:43:29 +0000
commitf9c026a85b129328be8ed9ce74f19fc0065454be (patch)
tree399caa063a9877ae0a03737895cb45214ca6a9d2 /binutils/bucomm.h
parentec6e49f44cf16f200634edd04c6e55ab0e2436b0 (diff)
downloadgdb-f9c026a85b129328be8ed9ce74f19fc0065454be.zip
gdb-f9c026a85b129328be8ed9ce74f19fc0065454be.tar.gz
gdb-f9c026a85b129328be8ed9ce74f19fc0065454be.tar.bz2
PR binutils/2876
* configure.in: Check for the mkstemp and mkdtemp functions. * configure: Regenerate. * config.in (HAVE_MKDTEMP): New potential define. (MAKE_MKSTEMP): Likewise. * bucomm.c (make_tempname): Use mkstemp if it is available. * make_tempdir): New function: Create a temporary directory using mkdtemp, if it is available. * bucomm.h (make_tempdir): New prototype. * objcopy.c (copy_archive): Use make_tempdir if it is available. (strip_main): Produce an warning message if a temporary file could not be (copy_main): Likewise. * ar.c (write_archive): Likewise.
Diffstat (limited to 'binutils/bucomm.h')
-rw-r--r--binutils/bucomm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/binutils/bucomm.h b/binutils/bucomm.h
index 9f914ad..99dbcfc 100644
--- a/binutils/bucomm.h
+++ b/binutils/bucomm.h
@@ -1,6 +1,6 @@
/* bucomm.h -- binutils common include file.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+ 2001, 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -200,6 +200,9 @@ 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 *);