Merge fdc6ba3bec
into 6e2e68fd08
This commit is contained in:
commit
c61c8370e9
3 changed files with 5 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -148,6 +148,9 @@ ifeq ($(shell $(CC) -o /dev/null compat/test-closefrom.c 2>/dev/null && echo 1),
|
|||
DEFINES+=-DHAVE_CLOSEFROM
|
||||
endif
|
||||
endif
|
||||
ifdef CONFIG_NO_WORKER
|
||||
DEFINES+=-DCONFIG_NO_WORKER
|
||||
endif
|
||||
|
||||
CFLAGS+=$(DEFINES)
|
||||
CFLAGS_DEBUG=$(CFLAGS) -O0
|
||||
|
|
|
@ -64,7 +64,7 @@ typedef sig_t sighandler_t;
|
|||
|
||||
#endif
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#if !defined(_WIN32) && !defined(CONFIG_NO_WORKER)
|
||||
/* enable the os.Worker API. IT relies on POSIX threads */
|
||||
#define USE_WORKER
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
/* define to include Atomics.* operations which depend on the OS
|
||||
threads */
|
||||
#if !defined(EMSCRIPTEN)
|
||||
#if !defined(EMSCRIPTEN) && !defined(CONFIG_NO_WORKER)
|
||||
#define CONFIG_ATOMICS
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue