Skip to content

Commit c349d70

Browse files
committed
Workaround for undefined reference to __pthread_normal_mutex_initializer_np due to the relocation issue
1 parent 7919b8c commit c349d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

winsup/cygwin/include/pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern "C"
5555
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
5656

5757
/* This condition matches the one in <sys/_pthreadtypes.h> */
58-
#if !defined(__INSIDE_CYGWIN__) || !defined(__cplusplus)
58+
#if (!defined(__INSIDE_CYGWIN__) || !defined(__cplusplus)) && !defined(__aarch64__)
5959
/* Constants for initializer macros */
6060
extern struct __pthread_mutex_t __pthread_recursive_mutex_initializer_np;
6161
extern struct __pthread_mutex_t __pthread_normal_mutex_initializer_np;

0 commit comments

Comments
 (0)