summaryrefslogtreecommitdiff
path: root/lib/mkstemp-safer.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-08-09 23:42:26 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-08-09 23:42:26 +0000
commit93f90065f31c35780e2dc3d6b7c987677d9bc14e (patch)
treeba198c539d289ba716e4de9f420e58a61e214a84 /lib/mkstemp-safer.c
parentd24265f9659d21c8e89f1f21cf3b774c7c120afe (diff)
downloadcoreutils-93f90065f31c35780e2dc3d6b7c987677d9bc14e.tar.xz
Sync from gnulib.
Diffstat (limited to 'lib/mkstemp-safer.c')
-rw-r--r--lib/mkstemp-safer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mkstemp-safer.c b/lib/mkstemp-safer.c
index 5ae3413f0..315385da0 100644
--- a/lib/mkstemp-safer.c
+++ b/lib/mkstemp-safer.c
@@ -1,6 +1,6 @@
/* Invoke mkstemp, but avoid some glitches.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,6 +27,10 @@
#include <stdlib.h>
#include "unistd-safer.h"
+#if ! HAVE_MKSTEMP
+int mkstemp (char *);
+#endif
+
/* Like mkstemp, but do not return STDIN_FILENO, STDOUT_FILENO, or
STDERR_FILENO. */