diff --git a/src/webfuse/util/authenticator.cpp b/src/webfuse/util/authenticator.cpp index 990aab9..7cf7e15 100644 --- a/src/webfuse/util/authenticator.cpp +++ b/src/webfuse/util/authenticator.cpp @@ -4,7 +4,8 @@ #include #include -#ifndef closefrom +// closefrom was introduced in glibc 2.34 +#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34 namespace { diff --git a/test-src/integration/webfuse/test/process.cpp b/test-src/integration/webfuse/test/process.cpp index 86e657e..b4964ab 100644 --- a/test-src/integration/webfuse/test/process.cpp +++ b/test-src/integration/webfuse/test/process.cpp @@ -9,7 +9,8 @@ #include -#ifndef closefrom +// closefrom was introduced in glibc 2.34 +#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34 namespace {