summaryrefslogtreecommitdiff
path: root/CCache/util.c
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-09-14 15:51:50 -0700
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-09-14 15:51:50 -0700
commitc4e29fb686b860584ac1def0dd36a7a3d46310c6 (patch)
treeccdfec4ad0971869c1a78f1f09951524a086cca9 /CCache/util.c
parentba9baefdd93922a585757e18f10e5723a0105202 (diff)
downloadswig-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/util.c')
-rw-r--r--CCache/util.c2
1 files changed, 1 insertions, 1 deletions
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);