diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index 53d7a2bb3..44ed4bb47 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;