stages: 2/01-busybox: update .config
[dragora.git] / patches / gtk2 / configure-Move-all-includes-to-the-first-argument-of-AC_T.patch
blobc1affe2eb36310546e2a1b3049fbe6b03a4c2d0b
1 From: Ting-Wei Lan <lantw@src.gnome.org>
2 Date: Sat, 20 Jan 2018 17:52:33 +0800
3 Subject: configure: Move all includes to the first argument of AC_TRY_LINK
5 Putting includes in the second argument of AC_TRY_LINK is not safe. If
6 a header having inline functions is included inside the main function,
7 it becomes a nested function. This is not supported by clang.
9 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=792720
10 Origin: upstream, 2.24.33, commit:c3ededb119405c26c684cef569177b73255b7a22
11 ---
12 configure.ac | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
15 diff --git a/configure.ac b/configure.ac
16 index b75f9c6..44d3056 100644
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -715,7 +715,7 @@ oLIBS="$LIBS"
20 LIBS="$LIBS $GDK_WLIBS"
21 # The following is necessary for Linux libc-5.4.38
22 AC_MSG_CHECKING(if iswalnum() and friends are properly defined)
23 -AC_TRY_LINK([#include <stdlib.h>],[
24 +AC_TRY_LINK([#include <stdlib.h>
25 #if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
26 # ifdef HAVE_WCTYPE_H
27 # include <wctype.h>
28 @@ -726,7 +726,7 @@ AC_TRY_LINK([#include <stdlib.h>],[
29 # endif
30 #else
31 # define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
32 -#endif
33 +#endif],[
34 iswalnum((wchar_t) 0);
35 ], gdk_working_wctype=yes, gdk_working_wctype=no)
36 LIBS="$oLIBS"