diff --git a/asn1c/webcgi/asn1c-suid-helper.c b/asn1c/webcgi/asn1c-suid-helper.c
index 9a878fe899e81fcf688e04c60eefef293ae23e0b..a334f1f2cd231198bbfe494a567f7555e9e570af 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.