- Joined
- Apr 1, 2012
- Messages
- 1,249
- Solutions
- 71
- Reaction score
- 621
- Location
- Hell
- GitHub
- idontreallywolf
trying to compile 0.4 on OSX and im facing the following error in otserv.cpp
Code:
otserv.cpp:424:3: error: unknown type name 'cpu_set_t'
cpu_set_t mask;
Code:
#ifndef MACOS
cpu_set_t mask;
CPU_ZERO(&mask);
for(IntegerVec::iterator it = cores.begin(); it != cores.end(); ++it)
CPU_SET((*it), &mask);
sched_setaffinity(getpid(), (int32_t)sizeof(mask), &mask);
}
#endif