Make build on windows

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Asanka Herath
2009-11-25 02:22:31 +01:00
committed by Love Hornquist Astrand
parent 452c20aed5
commit c4b95f7330
12 changed files with 329 additions and 16 deletions

View File

@@ -113,10 +113,14 @@ main(int argc, char **argv)
if (rand_method) {
if (strcasecmp(rand_method, "fortuna") == 0)
RAND_set_rand_method(RAND_fortuna_method());
#ifndef NO_RAND_UNIX_METHOD
else if (strcasecmp(rand_method, "unix") == 0)
RAND_set_rand_method(RAND_unix_method());
#endif
#ifndef NO_RAND_EGD_METHOD
else if (strcasecmp(rand_method, "egd") == 0)
RAND_set_rand_method(RAND_egd_method());
#endif
else
errx(1, "unknown method %s", rand_method);
}