提交 c566fa1a 编写于 作者: 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>
上级 171bb129
...@@ -108,6 +108,10 @@ static inline int geteuid (void) { return 0; } ...@@ -108,6 +108,10 @@ static inline int geteuid (void) { return 0; }
static inline int getgid (void) { return 0; } static inline int getgid (void) { return 0; }
# endif # endif
# ifndef HAVE_GETEGID
static inline int getegid (void) { return 0; }
# endif
char *virGetHostname(void); char *virGetHostname(void);
char *virGetUserDirectory(void); char *virGetUserDirectory(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册