Skip to content

Commit

Permalink
Mountain Lion changed API of scandir
Browse files Browse the repository at this point in the history
The API of scandir has been changed in OSX 10.8 in a way that
it's the same as in other linux distros. Without this fix shogun
will not compile on OSX 10.8
  • Loading branch information
vigsterkr committed Aug 8, 2012
1 parent 47a593d commit 5e2d783
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shogun/io/SGIO.h
Expand Up @@ -58,7 +58,12 @@ enum EMessageType
#define FBUFSIZE 4096

#ifdef DARWIN
#include <Availability.h>
#ifdef __MAC_10_8
#define CONST_DIRENT_T const struct dirent
#else
#define CONST_DIRENT_T struct dirent
#endif // Mountain Lion or earlier
#else //DARWIN
#define CONST_DIRENT_T const struct dirent
#endif //DARWIN
Expand Down

0 comments on commit 5e2d783

Please sign in to comment.