mirror of
https://github.com/falk-werner/webfuse
synced 2026-03-02 03:40:24 +00:00
fix check of existense of closefrom function
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifndef closefrom
|
// closefrom was introduced in glibc 2.34
|
||||||
|
#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#ifndef closefrom
|
// closefrom was introduced in glibc 2.34
|
||||||
|
#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 34
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user