blob: 4a9ba33223609f4dc5ad4ff64490ddfc07fbe124 [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301Fix the warning for getuid, geteuid
2g_initialize.c: In function 'linux_initialize':
3g_initialize.c:275:5: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]
4g_initialize.c:275:5: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration]
5
6Upstream-Status: Pending
7Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
8
9diff --git a/src/g_initialize.c b/src1/g_initialize.c
10index 82fcce1..200f173 100644
11--- a/src/g_initialize.c
12+++ b/src/g_initialize.c
13@@ -29,6 +29,8 @@
14 #include "mglueP.h"
15 #include <stdlib.h>
16
17+#include <unistd.h> /*getuid, geteuid */
18+#include <sys/types.h>
19 #include <stdio.h>
20 #include <string.h>
21 #include <ctype.h>