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:
committed by
Jaromir Capik
parent
5d818a7a6d
commit
00279d692a
@ -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;
|
||||
|
Reference in New Issue
Block a user