diff src/callproc.c @ 33285:91819a44456a

(Fcall_process_region): Use HAVE_MKSTEMP.
author Dave Love <fx@gnu.org>
date Tue, 07 Nov 2000 18:12:12 +0000
parents 92f108b8b281
children 002c02db42d3
line wrap: on
line diff
--- a/src/callproc.c	Tue Nov 07 18:10:05 2000 +0000
+++ b/src/callproc.c	Tue Nov 07 18:12:12 2000 +0000
@@ -967,7 +967,18 @@
 
   coding_systems = Qt;
 
+#ifdef HAVE_MKSTEMP
+ {
+   int fd = mkstemp (tempfile);
+   if (fd == -1)
+     report_file_error ("Failed to open temporary file",
+			Fcons (Vtemp_file_name_pattern, Qnil));
+   else
+     close (fd);
+ }
+#else
   mktemp (tempfile);
+#endif
 
   filename_string = build_string (tempfile);
   GCPRO1 (filename_string);