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;