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