summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-15 15:06:55 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-15 15:06:55 +0000
commit2e5c59efc9df61d84f81af0f9a100672d096bac6 (patch)
tree99b333298da6a6e3698e8b43788f2d4c2097d8fe
parent5cd56c90f05d05c19c484f606b70d17873b507b5 (diff)
mingw (Win32) port
-rw-r--r--GenKey.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/GenKey.c b/GenKey.c
index d372424..9643c3e 100644
--- a/GenKey.c
+++ b/GenKey.c
@@ -51,6 +51,12 @@ getbits (long data, unsigned char *dst)
#define srandom srand48
#define random lrand48
#endif
+#ifdef WIN32
+#include <process.h>
+#define srandom srand
+#define random rand
+#define getpid(x) _getpid(x)
+#endif
void
XdmcpGenerateKey (XdmAuthKeyPtr key)