lulzbuster icon indicating copy to clipboard operation
lulzbuster copied to clipboard

[MacOS] thpool.c POSIX_C_SOURCE

Open DimitriFourny opened this issue 4 years ago • 1 comments

Hello,

It doesn't compile on MacOS 12.0.1 because if POSIX_C_SOURCE is defined, pthread_setname_np() will not be declared in pthread.h. I have added that in thpool.c to make it works, not sure if it's the best solution here:

#if defined(__APPLE__) && defined(__MACH__)
int pthread_setname_np(const char*);
#endif

DimitriFourny avatar Nov 09 '21 10:11 DimitriFourny

@DimitriFourny thanks a lot! :D will check that later...

noptrix avatar Nov 17 '21 12:11 noptrix