summaryrefslogtreecommitdiff
path: root/src/w32
diff options
context:
space:
mode:
authorJens Rehsack <sno@netbsd.org>2020-02-21 19:29:49 +0100
committerPaul Smith <psmith@gnu.org>2020-03-31 01:07:43 -0400
commit289108cc9bef892a46bba9b11e6989b36107415d (patch)
tree42b3a994641bc191357b0cd1eb523ced86b67690 /src/w32
parent61c413d5ea98593b204739604966f3ada7e29118 (diff)
downloadmake-git-289108cc9bef892a46bba9b11e6989b36107415d.tar.gz
* src/output.h: [WINDOWS32] [SV 57888] Use gnulib fcntl if available
If gnulib fcntl is available (for MinGW32) use it rather than our homegrown version. Signed-off-by: Jens Rehsack <sno@netbsd.org> Copyright-paperwork-exempt: yes
Diffstat (limited to 'src/w32')
-rw-r--r--src/w32/compat/posixfcn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/w32/compat/posixfcn.c b/src/w32/compat/posixfcn.c
index 975dfb73..00d87e00 100644
--- a/src/w32/compat/posixfcn.c
+++ b/src/w32/compat/posixfcn.c
@@ -29,6 +29,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef NO_OUTPUT_SYNC
/* Support for OUTPUT_SYNC and related functionality. */
+#if !defined(GNULIB_defined_rpl_fcntl) && !defined(GNULIB_defined_fcntl)
/* Emulation of fcntl that supports only F_GETFD and F_SETLKW. */
int
fcntl (intptr_t fd, int cmd, ...)
@@ -142,6 +143,7 @@ fcntl (intptr_t fd, int cmd, ...)
return -1;
}
}
+#endif /* GNULIB_defined_fcntl */
static intptr_t mutex_handle = -1;