Fails to compile (unknown type name "pthread_mutex_t" and so on)
Logarithmus opened this issue · 4 comments
Hello! Firstly, thank you very much for providing this patch. But at the very first attempt it didn't compile:
Error: unknown type name "pthread_mutex_t"
Error: implicit declaration of clock_gettime
Error: use of undeclared identifier 'M_PI'
I've managed to fix those errors by adding some include and define macros. Now I'd like to share those fixes with the community (first time in my life!).
Pull request: #7
I appreciate the patch. Sorry for the long delay in responding. Could you let me know what kind of compile environment you're on (OS and version, architecture, gcc/clang)? Just want to make sure not to break the compile for different environments.
OS: Arch Linux x86_64
Compiler: Clang 9.x.x (Arch is rolling-release, so I'm not sure what exact version of Clang I used in February)
CFLAGS from my /etc/makepkg.conf:
CFLAGS="-std=c11 -march=native -ffast-math -O3 -pipe -fstack-protector-strong -fno-plt"
@xtknight hey, are you still busy? It's such a small patch that it won't take much of your time to merge.