From a9e8026e6ffb2c387dd196d919c4205927e2cacd Mon Sep 17 00:00:00 2001 From: Lev Walkin <vlm@lionet.info> Date: Tue, 13 Nov 2007 22:29:18 +0000 Subject: [PATCH] Windows patch by Cyril Pertsev --- asn1c/webcgi/asn1c-suid-helper.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/asn1c/webcgi/asn1c-suid-helper.c b/asn1c/webcgi/asn1c-suid-helper.c index 9a878fe8..a334f1f2 100644 --- a/asn1c/webcgi/asn1c-suid-helper.c +++ b/asn1c/webcgi/asn1c-suid-helper.c @@ -6,6 +6,14 @@ #include <errno.h> #include <sysexits.h> +#ifdef WIN32 +#define setuid(s) +#define getuid() +#define setgid(s) +#define getgid() +#define chroot(p) (-1) +#endif + /* * This program chroots into a given directory, * then executes the asn1c command with strict arguments checking. -- GitLab