diff --git a/components/files/linuxpath.cpp b/components/files/linuxpath.cpp index c485002fdb..27581a1e2f 100644 --- a/components/files/linuxpath.cpp +++ b/components/files/linuxpath.cpp @@ -22,7 +22,7 @@ #include "linuxpath.hpp" -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) #include #include @@ -157,4 +157,4 @@ boost::filesystem::path LinuxPath::getRuntimeDataPath() const } /* namespace Files */ -#endif /* defined(__linux__) */ +#endif /* defined(__linux__) || defined(__FreeBSD__) */ diff --git a/components/files/linuxpath.hpp b/components/files/linuxpath.hpp index d6e717fc44..53f7a73b43 100644 --- a/components/files/linuxpath.hpp +++ b/components/files/linuxpath.hpp @@ -23,7 +23,7 @@ #ifndef COMPONENTS_FILES_LINUXPATH_H #define COMPONENTS_FILES_LINUXPATH_H -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) #include @@ -85,6 +85,6 @@ struct LinuxPath } /* namespace Files */ -#endif /* defined(__linux__) */ +#endif /* defined(__linux__) || defined(__FreeBSD__) */ #endif /* COMPONENTS_FILES_LINUXPATH_H */ diff --git a/components/files/path.hpp b/components/files/path.hpp index 0788cefb15..78de9c585b 100644 --- a/components/files/path.hpp +++ b/components/files/path.hpp @@ -26,7 +26,7 @@ #include #include -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) #include namespace Files { typedef LinuxPath TargetPathType; }