Check for syncfs and posix_spawn

This commit is contained in:
Martin 2016-06-11 15:29:09 +02:00
parent 013bd6c0b9
commit 76cdf67413

View File

@ -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)