From c113d386888152632ae26fae9f59faf4f1d2f2dc Mon Sep 17 00:00:00 2001 From: Troy Date: Tue, 13 Jun 2017 16:40:47 +1000 Subject: 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 Reviewed-by: Michael Stahl --- setup_native/scripts/source/getuid.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setup_native') 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 #include +#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 -- cgit