1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

File: Enable symbolic link creation on BSD

This commit is contained in:
reuk 2023-05-10 22:58:44 +01:00
parent f7e04d1423
commit 59727e6860
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -970,7 +970,7 @@ bool File::createSymbolicLink (const File& linkFileToCreate,
linkFileToCreate.deleteFile();
}
#if JUCE_MAC || JUCE_LINUX
#if JUCE_MAC || JUCE_LINUX || JUCE_BSD
// one common reason for getting an error here is that the file already exists
if (symlink (nativePathOfTarget.toRawUTF8(), linkFileToCreate.getFullPathName().toRawUTF8()) == -1)
{