This commit is contained in:
Henrik Rydgård 2012-12-13 10:49:51 +07:00
parent 434bc4e38f
commit dd54e3979e

View file

@ -53,19 +53,20 @@
#define fstat64 fstat
#endif
#if !defined(readdir_r)
// Hack
#if defined(__SYMBIAN32__)
static inline int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) {
struct dirent *readdir_entry;
struct dirent *readdir_entry;
readdir_entry = readdir(dirp);
if (readdir_entry == NULL) {
*result = NULL;
return errno;
}
readdir_entry = readdir(dirp);
if (readdir_entry == NULL) {
*result = NULL;
return errno;
}
*entry = *readdir_entry;
*result = entry;
return 0;
*entry = *readdir_entry;
*result = entry;
return 0;
}
#endif