File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3535#endif
3636#endif
3737
38+ #ifdef __APPLE__
39+ #ifndef AI_NUMERICSERV
40+ #define AI_NUMERICSERV 0
41+ #endif
42+ #endif
43+
3844namespace ix
3945{
4046 const int64_t DNSLookup::kDefaultWait = 1 ; // ms
Original file line number Diff line number Diff line change 1515#include < pthread_np.h>
1616#endif
1717
18+ #ifdef __APPLE__
19+ #include < AvailabilityMacros.h>
20+ #endif
21+
1822// Windows
1923#ifdef _WIN32
2024#include < windows.h>
@@ -58,7 +62,7 @@ namespace ix
5862
5963 void setThreadName (const std::string& name)
6064 {
61- #if defined(__APPLE__)
65+ #if defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1060)
6266 //
6367 // Apple reserves 16 bytes for its thread names
6468 // Notice that the Apple version of pthread_setname_np
You can’t perform that action at this time.
0 commit comments