diff --git a/compat/getentropy_linux.c b/compat/getentropy_linux.c index 8bfafe444..098b375b8 100644 --- a/compat/getentropy_linux.c +++ b/compat/getentropy_linux.c @@ -68,12 +68,10 @@ #define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l))) #define HD(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (x))) -/* (portability) some compilers cannot take sizeof a function pointer */ #define HF(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (void*))) int getentropy(void *buf, size_t len); -/* referencing functions in other link modules is not portable */ extern int main(int, char *argv[]); static int gotdata(char *buf, size_t len); static int getentropy_urandom(void *buf, size_t len); diff --git a/compat/getentropy_osx.c b/compat/getentropy_osx.c index 8cf46e5ef..b0f78bdff 100644 --- a/compat/getentropy_osx.c +++ b/compat/getentropy_osx.c @@ -70,12 +70,10 @@ #define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l))) #define HD(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (x))) -/* (portability) some compilers cannot take sizeof a function pointer */ #define HF(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (void*))) int getentropy(void *buf, size_t len); -/* referencing functions in other link modules is not portable */ extern int main(int, char *argv[]); static int gotdata(char *buf, size_t len); static int getentropy_urandom(void *buf, size_t len); diff --git a/compat/getentropy_solaris.c b/compat/getentropy_solaris.c index f2857a851..e46501935 100644 --- a/compat/getentropy_solaris.c +++ b/compat/getentropy_solaris.c @@ -61,12 +61,11 @@ #define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l))) #define HD(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (x))) -/* (portability) some compilers cannot take sizeof a function pointer */ #define HF(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (void*))) int getentropy(void *buf, size_t len); -/* referencing functions in other link modules is not portable */ +/* referencing functions in other link modules is not portable with sun-cc */ /* extern int main(int, char *argv[]); */ static int gotdata(char *buf, size_t len); static int getentropy_urandom(void *buf, size_t len, const char *path,