x11-packages/sfml

This commit is contained in:
termux-actions[bot]
2022-04-28 22:42:05 +00:00
parent 2fda4c4f42
commit cd1740189a
3 changed files with 38 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
--- a/src/SFML/System/Unix/ThreadImpl.cpp
+++ b/src/SFML/System/Unix/ThreadImpl.cpp
@@ -62,7 +62,7 @@
{
if (m_isActive)
{
- #ifndef SFML_SYSTEM_ANDROID
+ #ifndef __ANDROID__
pthread_cancel(m_thread);
#else
// See https://stackoverflow.com/questions/4610086/pthread-cancel-al
@@ -78,7 +78,7 @@
// The Thread instance is stored in the user data
Thread* owner = static_cast<Thread*>(userData);
- #ifndef SFML_SYSTEM_ANDROID
+ #ifndef __ANDROID__
// Tell the thread to handle cancel requests immediately
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
#endif