From: Clang via Jeffrey Walton Date: Thu, 12 Feb 2015 16:20:48 +0000 (-0500) Subject: RT3684: rand_egd needs stddef.h X-Git-Tag: OpenSSL_1_1_0-pre1~1647 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5006c32253483ba232dd441c28624801195cd7b5;p=oweals%2Fopenssl.git RT3684: rand_egd needs stddef.h And remove backup definition of offsetof. Reviewed-by: Richard Levitte --- diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index 53d7a2bb37..44ed4bb47c 100644 --- a/crypto/rand/rand_egd.c +++ b/crypto/rand/rand_egd.c @@ -113,6 +113,7 @@ int RAND_egd_bytes(const char *path, int bytes) #else # include # include OPENSSL_UNISTD +# include # include # include # ifndef NO_SYS_UN_H @@ -130,10 +131,6 @@ struct sockaddr_un { # include # include -# ifndef offsetof -# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -# endif - int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) { int ret = 0;