From 03f8528315fa46c95991a34f3325d7b33ae5538c Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Sat, 02 May 2020 21:48:36 +0000
Subject: [PATCH] Update source to SDL2 2.0.12
---
source/src/video/wayland/SDL_waylanddatamanager.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/source/src/video/wayland/SDL_waylanddatamanager.c b/source/src/video/wayland/SDL_waylanddatamanager.c
index f1b9742..72dfdda 100644
--- a/source/src/video/wayland/SDL_waylanddatamanager.c
+++ b/source/src/video/wayland/SDL_waylanddatamanager.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -53,7 +53,11 @@
sigemptyset(&sig_set);
sigaddset(&sig_set, SIGPIPE);
- pthread_sigmask(SIG_BLOCK, &sig_set, &old_sig_set);
+#if SDL_THREADS_DISABLED
+ sigprocmask(SIG_BLOCK, &sig_set, &old_sig_set);
+#else
+ pthread_sigmask(SIG_BLOCK, &sig_set, &old_sig_set);
+#endif
if (ready == 0) {
bytes_written = SDL_SetError("Pipe timeout");
@@ -70,7 +74,12 @@
}
sigtimedwait(&sig_set, 0, &zerotime);
+
+#if SDL_THREADS_DISABLED
+ sigprocmask(SIG_SETMASK, &old_sig_set, NULL);
+#else
pthread_sigmask(SIG_SETMASK, &old_sig_set, NULL);
+#endif
return bytes_written;
}
--
Gitblit v1.9.3