Skip to content

Commit

Permalink
fix check of existense of closefrom function
Browse files Browse the repository at this point in the history
  • Loading branch information
falk-werner committed Jan 8, 2024
1 parent e8a9d33 commit 8554d74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/webfuse/util/authenticator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#include <sys/wait.h>
#include <fcntl.h>

#ifndef closefrom
// closefrom was introduced in glibc 2.34
#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34
namespace
{

Expand Down
3 changes: 2 additions & 1 deletion test-src/integration/webfuse/test/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

#include <stdexcept>

#ifndef closefrom
// closefrom was introduced in glibc 2.34
#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34
namespace
{

Expand Down

0 comments on commit 8554d74

Please sign in to comment.