summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-11-30 21:48:33 (GMT)
committerGitHub <noreply@github.com>2020-11-30 21:48:33 (GMT)
commit1244c816d7cdfa8a26d1671cab67122a8c5271a7 (patch)
tree256d01f36bfef2b7f7b5235069ebaf275f692aba /Modules
parent5c73afc36ee6cca41009a510092e1f901c5dc0a0 (diff)
downloadcpython-1244c816d7cdfa8a26d1671cab67122a8c5271a7.zip
cpython-1244c816d7cdfa8a26d1671cab67122a8c5271a7.tar.gz
cpython-1244c816d7cdfa8a26d1671cab67122a8c5271a7.tar.bz2
bpo-31904: Support signal module on VxWorks (GH-23391)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/signalmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index fcc8f1c..7ac797a 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -120,7 +120,11 @@ static volatile struct {
#else
#define INVALID_FD (-1)
static volatile struct {
+#ifdef __VXWORKS__
+ int fd;
+#else
sig_atomic_t fd;
+#endif
int warn_on_full_buffer;
} wakeup = {.fd = INVALID_FD, .warn_on_full_buffer = 1};
#endif