From: Dave Love Date: Tue, 7 Nov 2000 18:12:12 +0000 (+0000) Subject: (Fcall_process_region): Use HAVE_MKSTEMP. X-Git-Tag: emacs-pretest-21.0.90~240 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ddc85a489edb9291d2dabeadd95eaec49e05855;p=emacs.git (Fcall_process_region): Use HAVE_MKSTEMP. --- diff --git a/src/callproc.c b/src/callproc.c index bf2fabcc750..9ba459f992a 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -967,7 +967,18 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") 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);