bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] modules: fcntl: allow being detected by importing projects


From: Jens Rehsack
Subject: [PATCH 2/2] modules: fcntl: allow being detected by importing projects
Date: Mon, 24 Feb 2020 13:56:49 +0100

GNU project `make` relies on gnulib but provides some own compatibility
functions - including an `fcntl`, which fails on mingw.
The intension of gnulib is providing these functions and being wider tested,
but silently injecting a function opens battle of compatibility layers.

So adding a hint into target `config.h` to allow deciding whether using
an own compatibility implementation or not.

Signed-off-by: Jens Rehsack <address@hidden>
---
 modules/fcntl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/fcntl b/modules/fcntl
index 3ee0811c8..508794de2 100644
--- a/modules/fcntl
+++ b/modules/fcntl
@@ -17,6 +17,7 @@ configure.ac:
 gl_FUNC_FCNTL
 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
   AC_LIBOBJ([fcntl])
+  AC_DEFINE(HAVE_GNULIB_FCNTL, 1, [Define to 1 if you have the `fcntl' 
function via gnulib.])
 fi
 gl_FCNTL_MODULE_INDICATOR([fcntl])
 
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]