From eca7c51ea6582403d978421ee0e096cdeb08c07f Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Sat, 12 Jul 2014 19:31:09 +0000 Subject: [PATCH] Link and test main. git-svn-id: file:///svn/unbound/trunk@3187 be551aaa-1e26-0410-a405-d3ace91eadb9 --- compat/getentropy_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/getentropy_linux.c b/compat/getentropy_linux.c index d07953a61..8bfafe444 100644 --- a/compat/getentropy_linux.c +++ b/compat/getentropy_linux.c @@ -74,7 +74,7 @@ int getentropy(void *buf, size_t len); /* referencing functions in other link modules is not portable */ -/* extern int main(int, char *argv[]); */ +extern int main(int, char *argv[]); static int gotdata(char *buf, size_t len); static int getentropy_urandom(void *buf, size_t len); #ifdef CTL_MAXNAME @@ -347,7 +347,7 @@ getentropy_fallback(void *buf, size_t len) HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1, sigset); - /* HF(main); */ /* an addr in program */ + HF(main); /* an addr in program */ HF(getentropy); /* an addr in this library */ HF(printf); /* an addr in libc */ p = (char *)&p; -- 2.47.2