From: Wouter Wijngaards Date: Sat, 12 Jul 2014 19:30:32 +0000 (+0000) Subject: Fixup and link in main for some systems. X-Git-Tag: release-1.5.0rc1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c4d6323eff95042640043d9bc3bcaf202e7b7a9;p=thirdparty%2Funbound.git Fixup and link in main for some systems. git-svn-id: file:///svn/unbound/trunk@3186 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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;