Kaydet (Commit) c113d386 authored tarafından Troy's avatar Troy Kaydeden (comit) Michael Stahl

Add setgid call stub for Linux

Required by dpkg --build on Debian squeeze.

Change-Id: I5e0e9c8f7851555a277d21aa14f9d695bad12198
Reviewed-on: https://gerrit.libreoffice.org/38765Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 7c1a5151
......@@ -24,6 +24,8 @@
#include <unistd.h>
#include <dlfcn.h>
#define UNUSED(x) (void)(x)
#ifdef _cplusplus
extern "C" {
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment