diff options
| author | Dave Love | 2000-11-07 18:12:12 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-07 18:12:12 +0000 |
| commit | 1ddc85a489edb9291d2dabeadd95eaec49e05855 (patch) | |
| tree | bc27a152483ff99bffd34808b0b7e1ce19cac321 /src | |
| parent | cb6cf843f67379fc6ec85b0bd2233baababb1503 (diff) | |
| download | emacs-1ddc85a489edb9291d2dabeadd95eaec49e05855.tar.gz emacs-1ddc85a489edb9291d2dabeadd95eaec49e05855.zip | |
(Fcall_process_region): Use HAVE_MKSTEMP.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 11 |
1 files changed, 11 insertions, 0 deletions
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.") | |||
| 967 | 967 | ||
| 968 | coding_systems = Qt; | 968 | coding_systems = Qt; |
| 969 | 969 | ||
| 970 | #ifdef HAVE_MKSTEMP | ||
| 971 | { | ||
| 972 | int fd = mkstemp (tempfile); | ||
| 973 | if (fd == -1) | ||
| 974 | report_file_error ("Failed to open temporary file", | ||
| 975 | Fcons (Vtemp_file_name_pattern, Qnil)); | ||
| 976 | else | ||
| 977 | close (fd); | ||
| 978 | } | ||
| 979 | #else | ||
| 970 | mktemp (tempfile); | 980 | mktemp (tempfile); |
| 981 | #endif | ||
| 971 | 982 | ||
| 972 | filename_string = build_string (tempfile); | 983 | filename_string = build_string (tempfile); |
| 973 | GCPRO1 (filename_string); | 984 | GCPRO1 (filename_string); |