Skip to content

Commit e350cce

Browse files
committed
Logo: fix building on Windows
1 parent 1c24cb3 commit e350cce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/logo/image/image.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,11 @@ static int getCacheFD(FFLogoRequestData* requestData, const char* fileName)
620620
{
621621
uint32_t cacheDirLength = requestData->cacheDir.length;
622622
ffStrbufAppendS(&requestData->cacheDir, fileName);
623-
int fd = open(requestData->cacheDir.chars, O_RDONLY | O_CLOEXEC);
623+
int fd = open(requestData->cacheDir.chars, O_RDONLY
624+
#ifdef O_CLOEXEC
625+
| O_CLOEXEC
626+
#endif
627+
);
624628
ffStrbufSubstrBefore(&requestData->cacheDir, cacheDirLength);
625629
return fd;
626630
}

0 commit comments

Comments
 (0)