More portable headers. (PR #1310)

This commit is contained in:
Andrea 2024-06-02 12:54:40 +01:00 committed by GitHub
parent 06a646f751
commit ae7e5a63a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifndef _MSC_VER
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
#endif

View File

@ -69,11 +69,12 @@ typedef int socklen_t;
#define SOCK_EWOULDBLOCK EWOULDBLOCK
#define SOCK_EINPROGRESS EINPROGRESS
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <poll.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <errno.h>
#endif