$NetBSD: patch-fix-egd-ifdef,v 1.1 2020/04/17 11:28:02 tm Exp $ Fix compilation without EGD Richard Laager https://sourceforge.net/p/squirrelmail/mailman/message/35526927/ --- src/main.c.orig +++ src/main.c @@ -460,7 +460,7 @@ /* Set up OpenSSL thread protection */ ssl_thread_setup(fn); -#ifndef HAVE_RAND_EGD +#ifdef HAVE_RAND_EGD if ( RAND_egd( ( RAND_file_name( f_randfile, sizeof( f_randfile ) ) == f_randfile ) ? f_randfile : "/.rnd" ) ) #endif {