From 2c4d6323eff95042640043d9bc3bcaf202e7b7a9 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Sat, 12 Jul 2014 19:30:32 +0000 Subject: [PATCH] Fixup and link in main for some systems. git-svn-id: file:///svn/unbound/trunk@3186 be551aaa-1e26-0410-a405-d3ace91eadb9 --- compat/getentropy_osx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/getentropy_osx.c b/compat/getentropy_osx.c index a92111433..8cf46e5ef 100644 --- a/compat/getentropy_osx.c +++ b/compat/getentropy_osx.c @@ -76,7 +76,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); static int getentropy_fallback(void *buf, size_t len); @@ -294,7 +294,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