@@ -81,10 +81,16 @@ struct FileHelpers | |||||
static bool isDirectory (const std::string& path) | static bool isDirectory (const std::string& path) | ||||
{ | { | ||||
struct stat64 info; | |||||
#if defined (__FreeBSD__) || defined (__OpenBSD__) | |||||
#define JUCE_STAT stat | |||||
#else | |||||
#define JUCE_STAT stat64 | |||||
#endif | |||||
struct JUCE_STAT info; | |||||
return ! path.empty() | return ! path.empty() | ||||
&& stat64 (path.c_str(), &info) == 0 | |||||
&& JUCE_STAT (path.c_str(), &info) == 0 | |||||
&& ((info.st_mode & S_IFDIR) != 0); | && ((info.st_mode & S_IFDIR) != 0); | ||||
} | } | ||||
@@ -62,7 +62,7 @@ | |||||
#elif defined (JUCE_ANDROID) | #elif defined (JUCE_ANDROID) | ||||
#undef JUCE_ANDROID | #undef JUCE_ANDROID | ||||
#define JUCE_ANDROID 1 | #define JUCE_ANDROID 1 | ||||
#elif defined (__FreeBSD__) || (__OpenBSD__) | |||||
#elif defined (__FreeBSD__) || defined (__OpenBSD__) | |||||
#define JUCE_BSD 1 | #define JUCE_BSD 1 | ||||
#elif defined (LINUX) || defined (__linux__) | #elif defined (LINUX) || defined (__linux__) | ||||
#define JUCE_LINUX 1 | #define JUCE_LINUX 1 | ||||