diff options
Diffstat (limited to 'meta/recipes-devtools/make/make/0002-modules-fcntl-allow-being-detected-by-importing-proj.patch')
-rw-r--r-- | meta/recipes-devtools/make/make/0002-modules-fcntl-allow-being-detected-by-importing-proj.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/make/make/0002-modules-fcntl-allow-being-detected-by-importing-proj.patch b/meta/recipes-devtools/make/make/0002-modules-fcntl-allow-being-detected-by-importing-proj.patch new file mode 100644 index 0000000000..b3d97f9a3a --- /dev/null +++ b/meta/recipes-devtools/make/make/0002-modules-fcntl-allow-being-detected-by-importing-proj.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From fb8aaed3b040e589cd880fd714dda5ec00687217 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jens Rehsack <sno@netbsd.org> | ||
3 | Date: Mon, 24 Feb 2020 12:10:06 +0100 | ||
4 | Subject: [PATCH 2/2] modules: fcntl: allow being detected by importing | ||
5 | projects | ||
6 | |||
7 | GNU project `make` relies on gnulib but provides some own compatibility | ||
8 | functions - including an `fcntl`, which fails on mingw. | ||
9 | The intension of gnulib is providing these functions and being wider tested, | ||
10 | but silently injecting a function opens battle of compatibility layers. | ||
11 | |||
12 | So adding a hint into target `config.h` to allow deciding whether using | ||
13 | an own compatibility implementation or not. | ||
14 | |||
15 | Signed-off-by: Jens Rehsack <sno@netbsd.org> | ||
16 | --- | ||
17 | Upstream-Status: Pending | ||
18 | |||
19 | m4/gnulib-comp.m4 | 1 + | ||
20 | 1 file changed, 1 insertion(+) | ||
21 | |||
22 | diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 | ||
23 | index 3ee0811..cf75541 100644 | ||
24 | --- a/m4/gnulib-comp.m4 | ||
25 | +++ b/m4/gnulib-comp.m4 | ||
26 | @@ -147,6 +147,7 @@ | ||
27 | gl_FUNC_FCNTL | ||
28 | if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then | ||
29 | AC_LIBOBJ([fcntl]) | ||
30 | + AC_DEFINE(HAVE_GNULIB_FCNTL, 1, [Define to 1 if you have the `fcntl' function via gnulib.]) | ||
31 | fi | ||
32 | gl_FCNTL_MODULE_INDICATOR([fcntl]) | ||
33 | gl_FCNTL_H | ||