Skip to content

Commit de23924

Browse files
committed
Remove WITH_SYNCHRO in pthread_mutex_init/5-3.c to avoid depending on SIGUSRx signals that Emscripten does not support.
1 parent 5d07f3e commit de23924

File tree

1 file changed

+4
-1
lines changed
  • conformance/interfaces/pthread_mutex_init

1 file changed

+4
-1
lines changed

conformance/interfaces/pthread_mutex_init/5-3.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,18 @@
8080
/********************************************************************************************/
8181
/********************************** Configuration ******************************************/
8282
/********************************************************************************************/
83+
#ifndef __EMSCRIPTEN__
8384
#define WITH_SYNCHRO
85+
#endif
86+
8487
#ifndef VERBOSE
8588
#define VERBOSE 2
8689
#endif
8790

8891
/********************************************************************************************/
8992
/*********************************** Test case *****************************************/
9093
/********************************************************************************************/
91-
char do_it=1;
94+
volatile char do_it=1;
9295
unsigned long count_ope=0;
9396
pthread_mutex_t count_protect = PTHREAD_MUTEX_INITIALIZER;
9497
#ifdef WITH_SYNCHRO

0 commit comments

Comments
 (0)