summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-05-12 20:26:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-05-12 20:26:03 (GMT)
commitb22f54f848812fa00c28429de1d615a35ae84edc (patch)
treec94fc65e32503164c7f7e963cf6b8bac282815ed
parent9336e00b814e5a54eb52156cf83382b234a4091d (diff)
downloadtcl-b22f54f848812fa00c28429de1d615a35ae84edc.zip
tcl-b22f54f848812fa00c28429de1d615a35ae84edc.tar.gz
tcl-b22f54f848812fa00c28429de1d615a35ae84edc.tar.bz2
Make our mkstemp() replacement build on IRIX 6.5.
-rw-r--r--ChangeLog5
-rw-r--r--compat/mkstemp.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4cda0ee..144b70d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-12 Donal K. Fellows <dkf@users.sf.net>
+
+ * compat/mkstemp.c: Add more headers to make this file build on IRIX
+ 6.5. Thanks to Larry McVoy for this.
+
2009-05-08 Donal K. Fellows <dkf@users.sf.net>
* generic/tclOO.c (TclNRNewObjectInstance): [Bug 2414858]: Add a
diff --git a/compat/mkstemp.c b/compat/mkstemp.c
index 8adc11b..f86bde2 100644
--- a/compat/mkstemp.c
+++ b/compat/mkstemp.c
@@ -8,9 +8,11 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: mkstemp.c,v 1.1 2009/01/02 16:43:50 dkf Exp $
+ * RCS: @(#) $Id: mkstemp.c,v 1.2 2009/05/12 20:26:04 dkf Exp $
*/
+#include <errno.h>
+#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>