# HG changeset patch # User Dave Love # Date 973620732 0 # Node ID 91819a44456a4112bf197688d273d5b15a3e5abe # Parent 378de628b52684f34263756eb0c8f4bdb63cdbc5 (Fcall_process_region): Use HAVE_MKSTEMP. diff -r 378de628b526 -r 91819a44456a src/callproc.c --- 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);