summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-05-03 14:33:41 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-05-03 14:33:41 +0200
commita9f4431e0a205617bb316dbe459ac6188dd8b490 (patch)
treefc62c02cfb8372cbcbf378ed1c58d0c33b0c4ffd
parenta5a5a91342ebd83d13b8eff8f85d9c923e08f701 (diff)
proc: include headers to get definitions for ino_t and pid_t
Include <unistd.h> and <sys/types.h> in the header already as the declarations for proc_find_by_inode(...) and proc_exists(...) use ino_t and pid_t, respectively. Fixes: 1edfb2409d15 ("flowtop: Move & refactor walk_processes() to proc.c") Fixes: 1df0f481922a ("flowtop: Add process UI tab entry") Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--proc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 4c34a64..7b5be9b 100644
--- a/proc.h
+++ b/proc.h
@@ -2,6 +2,8 @@
#define PROC_H
#include <stdbool.h>
+#include <sys/types.h>
+#include <unistd.h>
extern void cpu_affinity(int cpu);
extern int set_proc_prio(int prio);