forked from cory/tildefriends
iOS OpenSSL => 3.2.0.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4645 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@ -61,7 +61,25 @@ struct servent *PASCAL getservbyname(const char *, const char *);
|
||||
# define accept(s,f,l) ((int)accept(s,f,l))
|
||||
# endif
|
||||
|
||||
/* Windows have other names for shutdown() reasons */
|
||||
# ifndef SHUT_RD
|
||||
# define SHUT_RD SD_RECEIVE
|
||||
# endif
|
||||
# ifndef SHUT_WR
|
||||
# define SHUT_WR SD_SEND
|
||||
# endif
|
||||
# ifndef SHUT_RDWR
|
||||
# define SHUT_RDWR SD_BOTH
|
||||
# endif
|
||||
|
||||
# else
|
||||
# if defined(__APPLE__)
|
||||
/*
|
||||
* This must be defined before including <netinet/in6.h> to get
|
||||
* IPV6_RECVPKTINFO
|
||||
*/
|
||||
# define __APPLE_USE_RFC_3542
|
||||
# endif
|
||||
|
||||
# ifndef NO_SYS_PARAM_H
|
||||
# include <sys/param.h>
|
||||
@ -71,6 +89,9 @@ struct servent *PASCAL getservbyname(const char *, const char *);
|
||||
# endif
|
||||
|
||||
# include <netdb.h>
|
||||
# if defined(OPENSSL_SYS_VMS)
|
||||
typedef size_t socklen_t; /* Currently appears to be missing on VMS */
|
||||
# endif
|
||||
# if defined(OPENSSL_SYS_VMS_NODECC)
|
||||
# include <socket.h>
|
||||
# include <in.h>
|
||||
@ -95,6 +116,13 @@ struct servent *PASCAL getservbyname(const char *, const char *);
|
||||
# include <sys/select.h>
|
||||
# endif
|
||||
|
||||
# ifdef OPENSSL_SYS_UNIX
|
||||
# ifndef OPENSSL_SYS_TANDEM
|
||||
# include <poll.h>
|
||||
# endif
|
||||
# include <errno.h>
|
||||
# endif
|
||||
|
||||
# ifndef VMS
|
||||
# include <sys/ioctl.h>
|
||||
# else
|
||||
@ -136,12 +164,15 @@ struct servent *PASCAL getservbyname(const char *, const char *);
|
||||
|
||||
# define get_last_socket_error() errno
|
||||
# define clear_socket_error() errno=0
|
||||
# define get_last_socket_error_is_eintr() (get_last_socket_error() == EINTR)
|
||||
|
||||
# if defined(OPENSSL_SYS_WINDOWS)
|
||||
# undef get_last_socket_error
|
||||
# undef clear_socket_error
|
||||
# undef get_last_socket_error_is_eintr
|
||||
# define get_last_socket_error() WSAGetLastError()
|
||||
# define clear_socket_error() WSASetLastError(0)
|
||||
# define get_last_socket_error_is_eintr() (get_last_socket_error() == WSAEINTR)
|
||||
# define readsocket(s,b,n) recv((s),(b),(n),0)
|
||||
# define writesocket(s,b,n) send((s),(b),(n),0)
|
||||
# elif defined(__DJGPP__)
|
||||
|
Reference in New Issue
Block a user