We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d210c0 commit c106e6cCopy full SHA for c106e6c
2 files changed
ixwebsocket/IXDNSLookup.cpp
@@ -35,6 +35,12 @@
35
#endif
36
37
38
+#ifdef __APPLE__
39
+#ifndef AI_NUMERICSERV
40
+#define AI_NUMERICSERV 0
41
+#endif
42
43
+
44
namespace ix
45
{
46
const int64_t DNSLookup::kDefaultWait = 1; // ms
ixwebsocket/IXSetThreadName.cpp
@@ -15,6 +15,10 @@
15
#include <pthread_np.h>
16
17
18
19
+#include <AvailabilityMacros.h>
20
21
22
// Windows
23
#ifdef _WIN32
24
#include <windows.h>
@@ -58,7 +62,7 @@ namespace ix
58
62
59
63
void setThreadName(const std::string& name)
60
64
61
-#if defined(__APPLE__)
65
+#if defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1060)
66
//
67
// Apple reserves 16 bytes for its thread names
68
// Notice that the Apple version of pthread_setname_np
0 commit comments