kernel: disable DRM_HISI_KIRIN and USB_DWC3_OF_SIMPLE
[openwrt/openwrt.git] / package / utils / util-linux / patches / 0001-fix-uClibc-ng-scanf-check.patch
1 From 180c908e2e80552b19bf3552667fc197d6edf7b3 Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@uclibc-ng.org>
3 Date: Fri, 3 Jun 2016 04:13:08 +0200
4 Subject: [PATCH] fix uClibc-ng scanf check
5
6 uClibc-ng tries to be compatible with GNU libc and defines
7 __GLIBC__ and pretend to be version 2.2.
8 We once changed it to 2.10, but then some hard to fix problems
9 in different software packages (gcc) occured.
10 It would be better if we disable the special GNU libc checks
11 for uClibc-ng here. uClibc-ng implements the required scanf
12 functionality.
13
14 Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
15 ---
16 configure.ac | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/configure.ac b/configure.ac
20 index f36b18c..4661c0d 100644
21 --- a/configure.ac
22 +++ b/configure.ac
23 @@ -581,7 +581,7 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier],
24 #include <stdio.h>
25 #include <unistd.h>
26
27 - #ifdef __GLIBC__
28 + #if defined(__GLIBC__) && !defined(__UCLIBC__)
29
30 #if !(__GLIBC_PREREQ(2, 7))
31 #error %m is not available
32 --
33 2.1.4
34