• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling OSX 0.4 compile error

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,250
Solutions
71
Reaction score
632
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
 
Back
Top