| Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | Fix the warning for getuid, geteuid | 
 | 2 | g_initialize.c: In function 'linux_initialize': | 
 | 3 | g_initialize.c:275:5: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration] | 
 | 4 | g_initialize.c:275:5: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration] | 
 | 5 |  | 
 | 6 | Upstream-Status: Pending | 
 | 7 | Signed-off-by: Yao Zhao <yao.zhao@windriver.com> | 
 | 8 |  | 
 | 9 | diff --git a/src/g_initialize.c b/src1/g_initialize.c | 
 | 10 | index 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> |