diff mbox

[2/5] Fixed warnings in src/g_initialize.c

Message ID 1351102124-24036-3-git-send-email-steved@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Steve Dickson Oct. 24, 2012, 6:08 p.m. UTC
From: Yao Zhao <yao.zhao@windriver.com>

g_initialize.c: In function 'linux_initialize':
g_initialize.c:275:5: warning: implicit declaration of function 'getuid'
[-Wimplicit-function-declaration]
g_initialize.c:275:5: warning: implicit declaration of function
'geteuid' [-Wimplicit-function-declaration]

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
 src/g_initialize.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/src/g_initialize.c b/src/g_initialize.c
index 908398e..d1cb172 100644
--- a/src/g_initialize.c
+++ b/src/g_initialize.c
@@ -29,6 +29,8 @@ 
 #include "mglueP.h"
 #include <stdlib.h>
 
+#include <unistd.h>   /*getuid, geteuid */
+#include <sys/types.h>
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>