From 5006c32253483ba232dd441c28624801195cd7b5 Mon Sep 17 00:00:00 2001 From: Clang via Jeffrey Walton Date: Thu, 12 Feb 2015 11:20:48 -0500 Subject: [PATCH] RT3684: rand_egd needs stddef.h And remove backup definition of offsetof. Reviewed-by: Richard Levitte --- crypto/rand/rand_egd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.40.0