summaryrefslogtreecommitdiffstats
path: root/newlib/libc/search/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/search/hash.c')
-rw-r--r--newlib/libc/search/hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c
index 3aa3eb7ea..10b4ded47 100644
--- a/newlib/libc/search/hash.c
+++ b/newlib/libc/search/hash.c
@@ -143,7 +143,9 @@ __hash_open(file, flags, mode, info, dflags)
fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
new_table = 1;
+#ifdef HAVE_FCNTL
(void)fcntl(hashp->fp, F_SETFD, 1);
+#endif
}
if (new_table) {
if (!(hashp = init_hash(hashp, file, (HASHINFO *)info)))