diff options
author | Troy <libreoffice@troy.rollo.name> | 2017-06-13 16:40:47 +1000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-07-07 13:04:41 +0200 |
commit | c113d386888152632ae26fae9f59faf4f1d2f2dc (patch) | |
tree | 5061c62abb75ff25d205ac24075b678f68de2d06 /setup_native | |
parent | 7c1a51516aaf2767e43b393259a1ad21570df5fb (diff) |
Add setgid call stub for Linux
Required by dpkg --build on Debian squeeze.
Change-Id: I5e0e9c8f7851555a277d21aa14f9d695bad12198
Reviewed-on: https://gerrit.libreoffice.org/38765
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/scripts/source/getuid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/setup_native/scripts/source/getuid.c b/setup_native/scripts/source/getuid.c index 8d0d9ebc1627..3f86817051de 100644 --- a/setup_native/scripts/source/getuid.c +++ b/setup_native/scripts/source/getuid.c @@ -24,6 +24,8 @@ #include <unistd.h> #include <dlfcn.h> +#define UNUSED(x) (void)(x) + #ifdef _cplusplus extern "C" { #endif @@ -112,6 +114,7 @@ int fstatat64(int fildes, const char *path, struct stat64 *buf, int flag) uid_t getuid (void) {return 0;} uid_t geteuid (void) {return 0;} +int setgid (gid_t p) { UNUSED(p); return 0; } /* This is to fool tar */ #ifdef X86_64 |