[PATCH] loader: fix build with --without-pthread
Alex Xu (Hello71)
alex_y_xu at yahoo.ca
Mon Aug 23 10:50:04 CDT 2021
dubious whether --without-pthread is actually useful, but as long as it
exists it should at least try to work
---
loader/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/loader/main.c b/loader/main.c
index 86c2b28263e..30f363d2430 100644
--- a/loader/main.c
+++ b/loader/main.c
@@ -172,6 +172,8 @@ int main( int argc, char *argv[] )
}
fprintf( stderr, "wine: could not load ntdll.so: %s\n", dlerror() );
+#ifdef HAVE_PTHREAD_H
pthread_detach( pthread_self() ); /* force importing libpthread for OpenGL */
+#endif
exit(1);
}
--
2.33.0
More information about the wine-devel
mailing list