Skip to content

Commit 8554d74

Browse files
committed
fix check of existense of closefrom function
1 parent e8a9d33 commit 8554d74

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/webfuse/util/authenticator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#include <sys/wait.h>
55
#include <fcntl.h>
66

7-
#ifndef closefrom
7+
// closefrom was introduced in glibc 2.34
8+
#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34
89
namespace
910
{
1011

test-src/integration/webfuse/test/process.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
#include <stdexcept>
1111

12-
#ifndef closefrom
12+
// closefrom was introduced in glibc 2.34
13+
#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34
1314
namespace
1415
{
1516

0 commit comments

Comments
 (0)