diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-09-14 15:51:50 -0700 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-09-14 15:51:50 -0700 |
commit | c4e29fb686b860584ac1def0dd36a7a3d46310c6 (patch) | |
tree | ccdfec4ad0971869c1a78f1f09951524a086cca9 /CCache | |
parent | ba9baefdd93922a585757e18f10e5723a0105202 (diff) | |
download | swig-c4e29fb686b860584ac1def0dd36a7a3d46310c6.tar.gz |
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
Diffstat (limited to 'CCache')
-rw-r--r-- | CCache/ccache.h | 2 | ||||
-rw-r--r-- | CCache/util.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CCache/ccache.h b/CCache/ccache.h index 3c3e22311..dcbb03f0c 100644 --- a/CCache/ccache.h +++ b/CCache/ccache.h @@ -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 override */ +/* Seems okay in Cygwin 1.7.0 #ifdef __CYGWIN__ #undef HAVE_MKSTEMP #endif +*/ diff --git a/CCache/util.c b/CCache/util.c index bba232492..66f9823b9 100644 --- a/CCache/util.c +++ b/CCache/util.c @@ -82,7 +82,7 @@ void copy_fd(int fd_in, int fd_out) #ifndef HAVE_MKSTEMP /* cheap and nasty mkstemp replacement */ -static int mkstemp(char *template) +int mkstemp(char *template) { mktemp(template); return open(template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600); |