Skip to content

Commit de5d749

Browse files
committed
Handle data on FreeBSD and DragonFly just like on Linux
Actually, I'd use this as generic case instead of "Unsupported operating system" branch
1 parent 5d28449 commit de5d749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Files.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void Files::Init(const char * const *argv)
6767
}
6868
if(resources.back() != SEP)
6969
resources += SEP;
70-
#if defined __linux__
70+
#if defined __linux__ || defined __FreeBSD__ || defined __DragonFly__
7171
// Special case, for Linux: the resource files are not in the same place as
7272
// the executable, but are under the same prefix (/usr or /usr/local).
7373
static const string LOCAL_PATH = "/usr/local/";

0 commit comments

Comments
 (0)