diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 20:04:53 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 20:04:53 -0200 |
commit | a89758094fc355771da613a0f9b1cb16017dd4e8 (patch) | |
tree | 0b58c155a12f66ea1567a13a7abcbbdab02948c3 | |
parent | 5578a316f047551d21f04a5df47fd705bf486ee3 (diff) |
check /proc only if using /proc
-rw-r--r-- | htop.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -656,11 +656,12 @@ int main(int argc, char** argv) { } } - +#ifdef HAVE_PROC if (access(PROCDIR, R_OK) != 0) { fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR); exit(1); } +#endif #ifdef HAVE_LIBNCURSESW char *locale = setlocale(LC_ALL, NULL); |