mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
RT3684: rand_egd needs stddef.h
And remove backup definition of offsetof. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
1d2932de4c
commit
5006c32253
@ -113,6 +113,7 @@ int RAND_egd_bytes(const char *path, int bytes)
|
|||||||
#else
|
#else
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
# include OPENSSL_UNISTD
|
# include OPENSSL_UNISTD
|
||||||
|
# include <stddef.h>
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# ifndef NO_SYS_UN_H
|
# ifndef NO_SYS_UN_H
|
||||||
@ -130,10 +131,6 @@ struct sockaddr_un {
|
|||||||
# include <string.h>
|
# include <string.h>
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
|
|
||||||
# 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 RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user