From c9e1fe33be9d9c60f832c22442cff45bf5a667a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulf=20M=C3=B6ller?= Date: Mon, 28 Feb 2000 20:16:06 +0000 Subject: [PATCH] Fix for non-monolithic build. Submitted by: Andrew Gray --- apps/app_rand.c | 2 ++ crypto/rand/rand.h | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/app_rand.c b/apps/app_rand.c index f7f133831d..9835c84ed0 100644 --- a/apps/app_rand.c +++ b/apps/app_rand.c @@ -109,7 +109,9 @@ * */ +#define NON_MAIN #include "apps.h" +#undef NON_MAIN #include #include diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h index 28f45ec052..f14a115225 100644 --- a/crypto/rand/rand.h +++ b/crypto/rand/rand.h @@ -72,6 +72,10 @@ typedef struct rand_meth_st int (*pseudorand)(unsigned char *buf, int num); } RAND_METHOD; +#ifdef BN_DEBUG +extern int rand_predictable; +#endif + void RAND_set_rand_method(RAND_METHOD *meth); RAND_METHOD *RAND_get_rand_method(void ); RAND_METHOD *RAND_SSLeay(void); @@ -85,7 +89,7 @@ int RAND_write_file(const char *file); const char *RAND_file_name(char *file,int num); int RAND_status(void); int RAND_egd(const char *path); -#ifdef WINDOWS +#if defined(WINDOWS) || defined(WIN32) void RAND_screen(void); #endif void ERR_load_RAND_strings(void); -- 2.25.1