-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from d3m3vilurr/fix-cpp-thread
Fix crash with using C++ thread
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff -uHNr gcc-9.1.0.orig/libgcc/gthr-posix.h gcc-9.1.0/libgcc/gthr-posix.h | ||
--- gcc-9.1.0.orig/libgcc/gthr-posix.h 2020-04-16 04:40:41.864017273 +0900 | ||
+++ gcc-9.1.0/libgcc/gthr-posix.h 2020-05-01 06:31:36.844109263 +0900 | ||
@@ -29,6 +29,9 @@ | ||
/* POSIX threads specific definitions. | ||
Easy, since the interface is just one-to-one mapping. */ | ||
|
||
+#undef GTHREAD_USE_WEAK | ||
+#define GTHREAD_USE_WEAK 0 | ||
+ | ||
#define __GTHREADS 1 | ||
#define __GTHREADS_CXX0X 1 | ||
|