From f841fc9c8c7568a3b5d84a4cc0cefacb7dbc16b9 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 2 Jul 2021 15:20:32 +1000 Subject: [PATCH] Fix ifdefs around get_random_bytes_prngd. get_random_bytes_prngd() is used if either of PRNGD_PORT or PRNGD_SOCKET are defined, so adjust ifdef accordingly. --- openbsd-compat/port-prngd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsd-compat/port-prngd.c b/openbsd-compat/port-prngd.c index 4c88b4b6c..6afa8f913 100644 --- a/openbsd-compat/port-prngd.c +++ b/openbsd-compat/port-prngd.c @@ -44,7 +44,7 @@ #include "misc.h" #include "log.h" -#ifdef PRNGD_SOCKET +#if defined(PRNGD_PORT) || defined(PRNGD_SOCKET) /* * EGD/PRNGD interface. * @@ -145,7 +145,7 @@ done: close(fd); return rval; } -#endif /* PRNGD_SOCKET */ +#endif /* PRNGD_PORT || PRNGD_SOCKET */ int seed_from_prngd(unsigned char *buf, size_t bytes)