提交 7bb54ef7 编写于 作者: D Daniel P. Berrange

Add stub getegid impl for platforms lacking it

We already have stubs for getuid, geteuid, getgid but
not for getegid. Something in gnulib already does a
check for it during configure, so we already have the
HAVE_GETEGID macro defined.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
(cherry picked from commit c566fa1a)
上级 a8813e50
......@@ -108,6 +108,10 @@ static inline int geteuid (void) { return 0; }
static inline int getgid (void) { return 0; }
# endif
# ifndef HAVE_GETEGID
static inline int getegid (void) { return 0; }
# endif
char *virGetHostname(void);
char *virGetUserDirectory(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册