mpdn/unthread

bits/types/struct_sched_param.h missing on Ubuntu 16.04

Opened this issue · 1 comments

$ make
mkdir -p bin
cc -c -o bin/unthread.o src/unthread.c -std=gnu11 -Wall -g -I include
In file included from include/../include/pthread.h:4:0,
                 from src/unthread.c:4:
include/bits/pthreadtypes.h:4:43: fatal error: bits/types/struct_sched_param.h: No such file or directory
compilation terminated.
GNUmakefile:112: recipe for target 'bin/unthread.o' failed
make: *** [bin/unthread.o] Error 1

Seemed to be fixed by including <sched.h> instead. Is there a HAS_XXX check that can be added to the header to include the right one on different systems?

Same error on Ubuntu 18.04