mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Add support for zOS (#1581)
Signed-off-by: v1gnesh <v1gnesh@users.noreply.github.com>
This commit is contained in:
parent
698a1e51ec
commit
4f33637b43
1 changed files with 8 additions and 2 deletions
10
httplib.h
10
httplib.h
|
@ -172,9 +172,15 @@ using socket_t = SOCKET;
|
||||||
#else // not _WIN32
|
#else // not _WIN32
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#ifndef _AIX
|
#if !defined(_AIX) && !defined(__MVS__)
|
||||||
#include <ifaddrs.h>
|
#include <ifaddrs.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __MVS__
|
||||||
|
#include <strings.h>
|
||||||
|
#ifndef NI_MAXHOST
|
||||||
|
#define NI_MAXHOST 1025
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
@ -2805,7 +2811,7 @@ inline bool bind_ip_address(socket_t sock, const std::string &host) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined _WIN32 && !defined ANDROID && !defined _AIX
|
#if !defined _WIN32 && !defined ANDROID && !defined _AIX && !defined __MVS__
|
||||||
#define USE_IF2IP
|
#define USE_IF2IP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue