mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Check for syncfs and posix_spawn
This commit is contained in:
parent
013bd6c0b9
commit
76cdf67413
@ -1043,7 +1043,7 @@ bool os_disable_background_priority(SPrioInfo& prio_info)
|
||||
|
||||
bool os_sync(const std::string & path)
|
||||
{
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && defined(HAVE_SYNCFS)
|
||||
int fd = open(path.c_str(), O_RDWR);
|
||||
|
||||
if(fd!=-1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user