Remove mkstemp replacement for ccache-swig on Cygwin
Cygwin 1.7.0 as well as Cygwin 1.7.24 seem to be working okay Cygwin 1.7.24 gives gcc warning about dangerous use of mktemp
This commit is contained in:
parent
ba9baefdd9
commit
c4e29fb686
2 changed files with 3 additions and 1 deletions
|
|
@ -200,6 +200,8 @@ typedef int (*COMPAR_FN_T)(const void *, const void *);
|
||||||
|
|
||||||
/* mkstemp() on some versions of cygwin don't handle binary files, so
|
/* mkstemp() on some versions of cygwin don't handle binary files, so
|
||||||
override */
|
override */
|
||||||
|
/* Seems okay in Cygwin 1.7.0
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
#undef HAVE_MKSTEMP
|
#undef HAVE_MKSTEMP
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ void copy_fd(int fd_in, int fd_out)
|
||||||
|
|
||||||
#ifndef HAVE_MKSTEMP
|
#ifndef HAVE_MKSTEMP
|
||||||
/* cheap and nasty mkstemp replacement */
|
/* cheap and nasty mkstemp replacement */
|
||||||
static int mkstemp(char *template)
|
int mkstemp(char *template)
|
||||||
{
|
{
|
||||||
mktemp(template);
|
mktemp(template);
|
||||||
return open(template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
|
return open(template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue