diff --git a/src/nethogs.cpp b/src/nethogs.cpp index 855261c..d08c4e7 100644 --- a/src/nethogs.cpp +++ b/src/nethogs.cpp @@ -39,6 +39,8 @@ #include #if NEEDROOT == 0 +#include +#include #include #include #include diff --git a/src/nethogs.h b/src/nethogs.h index 08f1add..bae80f0 100644 --- a/src/nethogs.h +++ b/src/nethogs.h @@ -53,7 +53,7 @@ * 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 +#define NEEDROOT 0 #endif #define DEBUG 0