We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 698a1e5 commit 4f33637Copy full SHA for 4f33637
httplib.h
@@ -172,9 +172,15 @@ using socket_t = SOCKET;
172
#else // not _WIN32
173
174
#include <arpa/inet.h>
175
-#ifndef _AIX
+#if !defined(_AIX) && !defined(__MVS__)
176
#include <ifaddrs.h>
177
#endif
178
+#ifdef __MVS__
179
+#include <strings.h>
180
+#ifndef NI_MAXHOST
181
+#define NI_MAXHOST 1025
182
+#endif
183
184
#include <net/if.h>
185
#include <netdb.h>
186
#include <netinet/in.h>
@@ -2805,7 +2811,7 @@ inline bool bind_ip_address(socket_t sock, const std::string &host) {
2805
2811
return ret;
2806
2812
}
2807
2813
2808
-#if !defined _WIN32 && !defined ANDROID && !defined _AIX
2814
+#if !defined _WIN32 && !defined ANDROID && !defined _AIX && !defined __MVS__
2809
2815
#define USE_IF2IP
2810
2816
2817
0 commit comments