#if defined(__linux__)
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE …
#endif
#include <openssl/bio.h>
#include <openssl/err.h>
#if !defined(OPENSSL_NO_SOCK)
#include <fcntl.h>
#include <string.h>
#include <sys/types.h>
#if !defined(OPENSSL_WINDOWS)
#include <netdb.h>
#include <unistd.h>
#else
OPENSSL_MSVC_PRAGMA(warning(push, 3))
#include <winsock2.h>
#include <ws2tcpip.h>
OPENSSL_MSVC_PRAGMA(warning(pop))
#endif
#include "internal.h"
#include "../internal.h"
int bio_ip_and_port_to_socket_and_addr(int *out_sock,
struct sockaddr_storage *out_addr,
socklen_t *out_addr_length,
const char *hostname,
const char *port_str) { … }
int bio_socket_nbio(int sock, int on) { … }
void bio_clear_socket_error(void) { … }
int bio_sock_error(int sock) { … }
int bio_socket_should_retry(int return_value) { … }
#endif