$OpenBSD$ --- src/sdl/i_system.cpp.orig Sun Nov 6 19:26:31 2011 +++ src/sdl/i_system.cpp Sun Nov 6 19:33:14 2011 @@ -697,11 +697,7 @@ bool I_WriteIniFailed () static const char *pattern; -#ifdef __APPLE__ static int matchfile (struct dirent *ent) -#else -static int matchfile (const struct dirent *ent) -#endif { return fnmatch (pattern, ent->d_name, FNM_NOESCAPE) == 0; } @@ -723,8 +719,7 @@ void *I_FindFirst (const char *filespec, findstate_t * } fileinfo->current = 0; - fileinfo->count = scandir (dir.GetChars(), &fileinfo->namelist, - matchfile, alphasort); + fileinfo->count = scandir (dir.GetChars(), &fileinfo->namelist, matchfile, alphasort); if (fileinfo->count > 0) { return fileinfo;