From: Daniel P. Berrange Date: Thu, 17 Oct 2013 13:51:32 +0000 (+0100) Subject: Add stub getegid impl for platforms lacking it X-Git-Tag: v1.1.4-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c566fa1ad007a280bdf5132f7f91010459036ff6;p=thirdparty%2Flibvirt.git 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: Daniel P. Berrange --- diff --git a/src/util/virutil.h b/src/util/virutil.h index e8765b24a7..2229c7332a 100644 --- a/src/util/virutil.h +++ b/src/util/virutil.h @@ -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);