Skip to content

Commit c607f16

Browse files
authored
Fix the compilation on modern glibc
This should close #12
1 parent a9d9c9e commit c607f16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gnuwrapper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#ifdef __linux__
88

9+
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 34
10+
911
#ifndef __GNUC__
1012
#error "This file requires the GNU compiler."
1113
#endif
@@ -92,4 +94,6 @@ extern "C" {
9294

9395
}
9496

97+
#endif /* __GLIBC__ == 2 && __GLIBC_MINOR__ < 34 */
98+
9599
#endif /* __linux__ */

0 commit comments

Comments
 (0)