+2001-11-14 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * bucomm.c (make_tempname): Use mkstemps instead of mkstemp, since
+ not all systems provide mkstemp.
+
2001-11-14 Alan Modra <amodra@bigpond.net.au>
* doc/binutils.texi (objdump): Document x86 -M options.
typedef long time_t;
#endif
#endif
+
+/* Ought to be defined in libiberty.h... */
+extern int mkstemps PARAMS ((char *, int));
\f
/* Error reporting */
#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;
}