From 922d218e1edf77ebcaaa14aa3de81895aa6d5a0d Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 5 Jun 2011 13:23:15 +0200 Subject: [PATCH] include/devname.h: add missing header The devname.h requires readproc.h header which has dev_t. Unless header is included the includes in program files must be in correct order. I also added FIXME item to remind that for uid & gid value int not correct data type but uid_t or gid_t from pwd.h. Signed-off-by: Sami Kerola --- proc/devname.h | 1 + proc/readproc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/proc/devname.h b/proc/devname.h index 10c2cb66..d54de1cd 100644 --- a/proc/devname.h +++ b/proc/devname.h @@ -2,6 +2,7 @@ #define PROC_DEVNAME_H #include "procps.h" +#include "readproc.h" EXTERN_C_BEGIN diff --git a/proc/readproc.h b/proc/readproc.h index b9d93d9c..9d781404 100644 --- a/proc/readproc.h +++ b/proc/readproc.h @@ -141,6 +141,7 @@ typedef struct proc_t { nlwp, // stat,status number of threads, or 0 if no clue tgid, // (special) thread group ID, the POSIX PID (see also: tid) tty, // stat full device number of controlling terminal + /* FIXME: int uids & gids should be uid_t or gid_t from pwd.h */ euid, egid, // stat(),status effective ruid, rgid, // status real suid, sgid, // status saved