From: Wouter Wijngaards Date: Fri, 11 Jul 2014 11:37:53 +0000 (+0000) Subject: Make getentropy work on OSX with libunbound. X-Git-Tag: release-1.5.0rc1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd8a6188af5d56a29ff770bb17f121649a5fb731;p=thirdparty%2Funbound.git Make getentropy work on OSX with libunbound. git-svn-id: file:///svn/unbound/trunk@3165 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/compat/getentropy_osx.c b/compat/getentropy_osx.c index f1bce33a1..45e7754ae 100644 --- a/compat/getentropy_osx.c +++ b/compat/getentropy_osx.c @@ -71,7 +71,7 @@ #define HD(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (x))) int getentropy(void *buf, size_t len); -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); @@ -289,7 +289,7 @@ getentropy_fallback(void *buf, size_t len) HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1, sigset); - HD(main); /* an addr in program */ + /*HD(main);*/ /* an addr in program */ HD(getentropy); /* an addr in this library */ HD(printf); /* an addr in libc */ p = (char *)&p;