Updated GLIBC check in configure.ac (#175)
authorBart S <smiba@users.noreply.github.com>
Sat, 1 May 2021 15:23:25 +0000 (17:23 +0200)
committerGitHub <noreply@github.com>
Sat, 1 May 2021 15:23:25 +0000 (08:23 -0700)
The current GLIBC check does not consider we may see glibc 3.0 in the future.

configure.ac

index f216c2183fd43b4c4f1daec3417d6b24f3949d39..fb0f4c0b7a20f87c789c81a5e3f2440b187b38a8 100644 (file)
@@ -411,7 +411,7 @@ yes
                        # http://www.v6.linux.or.jp/
                        AC_EGREP_CPP(yes, [
 #include <features.h>
-#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
+#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1))
 yes
 #endif],
                                [ipv6type=$i;