mirror of https://github.com/xzeldon/htop.git
check /proc only if using /proc
This commit is contained in:
parent
5578a316f0
commit
a89758094f
3
htop.c
3
htop.c
|
@ -656,11 +656,12 @@ int main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_PROC
|
||||||
if (access(PROCDIR, R_OK) != 0) {
|
if (access(PROCDIR, R_OK) != 0) {
|
||||||
fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR);
|
fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBNCURSESW
|
#ifdef HAVE_LIBNCURSESW
|
||||||
char *locale = setlocale(LC_ALL, NULL);
|
char *locale = setlocale(LC_ALL, NULL);
|
||||||
|
|
Loading…
Reference in New Issue