summaryrefslogtreecommitdiff
path: root/tests/rng-fork.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-07 23:18:01 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-07 23:20:39 +0200
commit93886329b827485e27e046eae2a8b35531b76e6c (patch)
tree3f182fecc1489d0fdd0ed6782f6efb40431a1193 /tests/rng-fork.c
parentd829409d4d23e975388b7783dc221ba7643d4c45 (diff)
downloadgnutls-93886329b827485e27e046eae2a8b35531b76e6c.tar.gz
win32 fixes. Patch by LRN.
Diffstat (limited to 'tests/rng-fork.c')
-rw-r--r--tests/rng-fork.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rng-fork.c b/tests/rng-fork.c
index 1e4b5e531d..c7fc1890b6 100644
--- a/tests/rng-fork.c
+++ b/tests/rng-fork.c
@@ -27,13 +27,16 @@
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
+#if !defined(_WIN32)
#include <sys/wait.h>
+#endif
#include "utils.h"
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
#include "../lib/random.h"
+#if !defined(_WIN32)
static void dump(const char* name, unsigned char* buf, int buf_size)
{
int i;
@@ -98,3 +101,10 @@ doit (void)
success("success");
}
}
+#else
+void
+doit (void)
+{
+ exit (77);
+}
+#endif