Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,15 @@ using socket_t = SOCKET;
#else // not _WIN32

#include <arpa/inet.h>
#ifndef _AIX
#if !defined(_AIX) && !defined(__MVS__)
#include <ifaddrs.h>
#endif
#ifdef __MVS__
#include <strings.h>
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
#endif
#endif
#include <net/if.h>
#include <netdb.h>
#include <netinet/in.h>
Expand Down Expand Up @@ -2805,7 +2811,7 @@ inline bool bind_ip_address(socket_t sock, const std::string &host) {
return ret;
}

#if !defined _WIN32 && !defined ANDROID && !defined _AIX
#if !defined _WIN32 && !defined ANDROID && !defined _AIX && !defined __MVS__
#define USE_IF2IP
#endif

Expand Down