From c607f1621641e02fa08df2ffab1c179a7c930bd0 Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Tue, 16 Aug 2022 20:12:51 +0200 Subject: [PATCH] Fix the compilation on modern glibc This should close #12 --- src/gnuwrapper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gnuwrapper.cpp b/src/gnuwrapper.cpp index 8b3b758..cfcef9a 100644 --- a/src/gnuwrapper.cpp +++ b/src/gnuwrapper.cpp @@ -6,6 +6,8 @@ #ifdef __linux__ +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 34 + #ifndef __GNUC__ #error "This file requires the GNU compiler." #endif @@ -92,4 +94,6 @@ extern "C" { } +#endif /* __GLIBC__ == 2 && __GLIBC_MINOR__ < 34 */ + #endif /* __linux__ */