Logo: fix building on Windows

This commit is contained in:
李通洲
2023-12-04 20:32:46 +08:00
parent 1c24cb3ebb
commit e350cce99e
+5 -1
View File
@@ -620,7 +620,11 @@ static int getCacheFD(FFLogoRequestData* requestData, const char* fileName)
{
uint32_t cacheDirLength = requestData->cacheDir.length;
ffStrbufAppendS(&requestData->cacheDir, fileName);
int fd = open(requestData->cacheDir.chars, O_RDONLY | O_CLOEXEC);
int fd = open(requestData->cacheDir.chars, O_RDONLY
#ifdef O_CLOEXEC
| O_CLOEXEC
#endif
);
ffStrbufSubstrBefore(&requestData->cacheDir, cacheDirLength);
return fd;
}