summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-10-01 05:47:27 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-10-01 05:47:27 (GMT)
commit6a6967e827e11d332598a9395adb9c578184f914 (patch)
tree4d5d81e3ea513a40062af07188bfb0ecad196b1b /Modules/signalmodule.c
parentefd1bf443431529d1d2f21fc8f77ed78557e8245 (diff)
downloadcpython-6a6967e827e11d332598a9395adb9c578184f914.zip
cpython-6a6967e827e11d332598a9395adb9c578184f914.tar.gz
cpython-6a6967e827e11d332598a9395adb9c578184f914.tar.bz2
Issue #21085: add configure check for siginfo_t.si_band
Patch by Masayuki Yamamoto, reviewed and rebased by Erik Bray. This is a first step on the long road toward resupporting Cygwin, which does not provide siginfo_t.si_band.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index e27075b..bc36d41 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -957,7 +957,11 @@ fill_siginfo(siginfo_t *si)
PyStructSequence_SET_ITEM(result, 4, _PyLong_FromUid(si->si_uid));
PyStructSequence_SET_ITEM(result, 5,
PyLong_FromLong((long)(si->si_status)));
+#ifdef HAVE_SIGINFO_T_SI_BAND
PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
+#else
+ PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(0L));
+#endif
if (PyErr_Occurred()) {
Py_DECREF(result);
return NULL;