Use <dirent.h> instead of <sys/dir.h>

Using <dirent.h> and struct dirent instead of <sys/dir.h> and struct direct
is preferred and works on Android which lacks sys/dir.h.

See:
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/dirent.h.html
This commit is contained in:
Fredrik Fornwall
2014-07-06 16:21:01 +02:00
committed by Jaromir Capik
parent 5d818a7a6d
commit 00279d692a
4 changed files with 5 additions and 6 deletions

View File

@ -399,7 +399,7 @@ static void crash(const char *filename) {
/***********************************************************************/
static void getrunners(unsigned int *restrict running, unsigned int *restrict blocked) {
struct direct *ent;
struct dirent *ent;
DIR *proc;
*running=0;