summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorWaldemar Brodkorb2016-06-03 04:23:28 +0200
committerKarel Zak2016-06-06 10:04:25 +0200
commitbac7fbdb2d141879526ca4342d56d2c749ba8af5 (patch)
tree3376f6c9026fd971935122b7fc55d5fdaa6c5daa /configure.ac
parentmore: don't include ncurses.h, fix for non-widechar (diff)
downloadkernel-qcow2-util-linux-bac7fbdb2d141879526ca4342d56d2c749ba8af5.tar.gz
kernel-qcow2-util-linux-bac7fbdb2d141879526ca4342d56d2c749ba8af5.tar.xz
kernel-qcow2-util-linux-bac7fbdb2d141879526ca4342d56d2c749ba8af5.zip
build-sys: fix uClibc-ng scanf check
uClibc-ng tries to be compatible with GNU libc and defines __GLIBC__ and pretend to be version 2.2. We once changed it to 2.10, but then some hard to fix problems in different software packages (gcc) occured. It would be better if we disable the special GNU libc checks for uClibc-ng here. uClibc-ng implements the required scanf functionality. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3ba723f3e..ec197ee83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -581,7 +581,7 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier],
#include <stdio.h>
#include <unistd.h>
- #ifdef __GLIBC__
+ #if defined(__GLIBC__) && !defined(__UCLIBC__)
#if !(__GLIBC_PREREQ(2, 7))
#error %m is not available