From ac7178fd923f338b1c57cdaba11bc9c9ccb816e1 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Fri, 24 Jan 2020 03:36:56 -0500 Subject: [PATCH] Future-proof glibc version check --- cbits/HsUnix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c index 7c72a341..fb49a1e0 100644 --- a/cbits/HsUnix.c +++ b/cbits/HsUnix.c @@ -47,7 +47,7 @@ int __hsunix_push_module(int fd, const char *module) * re-entrant. */ -#if defined (__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 23) +#if defined (__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 23)) #define USE_READDIR_R 0 #else #define USE_READDIR_R 1