Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/search/hash_page.c')
-rw-r--r--newlib/libc/search/hash_page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/search/hash_page.c b/newlib/libc/search/hash_page.c
index cffb20aa3..68ab9db17 100644
--- a/newlib/libc/search/hash_page.c
+++ b/newlib/libc/search/hash_page.c
@@ -869,7 +869,9 @@ open_temp(hashp)
(void)sigprocmask(SIG_BLOCK, &set, &oset);
if ((hashp->fp = mkstemp(namestr)) != -1) {
(void)unlink(namestr);
+#ifdef HAVE_FCNTL
(void)fcntl(hashp->fp, F_SETFD, 1);
+#endif
}
(void)sigprocmask(SIG_SETMASK, &oset, (sigset_t *)NULL);
return (hashp->fp != -1 ? 0 : -1);