summaryrefslogtreecommitdiff
path: root/lib/fcntl.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-08-12 11:37:52 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-08-12 11:45:55 -0700
commite697ca152570d59f9b591fc2003292c30d4be050 (patch)
tree8cbdaf6e917d0bf5f04d97c56ae650ab05bc0a6c /lib/fcntl.c
parent9102ecc63b094ffebae2215adc4a840a8b66f6d8 (diff)
downloademacs-e697ca152570d59f9b591fc2003292c30d4be050.tar.gz
Update from Gnulib
This incorporates: 2020-08-12 stdint: port intptr_t to more-recent MinGW 2020-08-11 Use __restrict also on clang 2020-08-11 Use flexible array syntax also on clang 2020-08-11 fcntl: On native Windows, use _setmode, not setmode * lib/binary-io.h, lib/cdefs.h, lib/fcntl.c, lib/regex.h: * lib/stdint.in.h: Copy from Gnulib.
Diffstat (limited to 'lib/fcntl.c')
-rw-r--r--lib/fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fcntl.c b/lib/fcntl.c
index 6b9927ec4e5..8cd1531527d 100644
--- a/lib/fcntl.c
+++ b/lib/fcntl.c
@@ -70,14 +70,14 @@ dupfd (int oldfd, int newfd, int flags)
return -1;
}
if (old_handle == INVALID_HANDLE_VALUE
- || (mode = setmode (oldfd, O_BINARY)) == -1)
+ || (mode = _setmode (oldfd, O_BINARY)) == -1)
{
/* oldfd is not open, or is an unassigned standard file
descriptor. */
errno = EBADF;
return -1;
}
- setmode (oldfd, mode);
+ _setmode (oldfd, mode);
flags |= mode;
for (;;)