* src/main.cpp: Made cap test conditional on __linux__. Improved the error message.

* src/nethogs.cpp: Reduced the scope of the includes moving them out of this file.
* src/nethogs.h: Removed NEEDROOT variable.
This commit is contained in:
rain1
2016-04-18 18:04:37 +01:00
parent b2f008c568
commit b6a595ae00
3 changed files with 20 additions and 28 deletions

View File

@@ -49,13 +49,6 @@
* after which a connection is removed */
#define CONNTIMEOUT 50
/* Set to '0' when compiling for a system that uses Linux Capabilities,
* like www.adamantix.org: in that case nethogs shouldn't check if it's
* running as root. Take care to give it sufficient privileges though. */
#ifndef NEEDROOT
#define NEEDROOT 1
#endif
#define DEBUG 0
#define REVERSEHACK 0