Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson.build: fix build without threads
Fix the following build failure with -Dsingle_threaded=true on embedded toolchains without pthread: FAILED: janet.p/meson-generated_.._janet.c.o /home/buildroot/autobuild/run/instance-3/output-1/host/bin/arm-linux-gcc -Ijanet.p -I. -I.. -I../src/include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -std=c99 -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -pthread -fvisibility=hidden -MD -MQ janet.p/meson-generated_.._janet.c.o -MF janet.p/meson-generated_.._janet.c.o.d -o janet.p/meson-generated_.._janet.c.o -c janet.c In file included from /home/buildroot/autobuild/run/instance-3/output-1/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/stdlib.h:24, from ../src/include/janet.h:300, from src/core/features.h:57: /home/buildroot/autobuild/run/instance-3/output-1/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/features.h:218:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp] 218 | # warning requested reentrant code, but thread support was disabled | ^~~~~~~ src/core/ev.c:39:10: fatal error: pthread.h: No such file or directory Signed-off-by: Fabrice Fontaine <[email protected]>
- Loading branch information