summaryrefslogtreecommitdiff
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-10 21:56:49 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-10 21:56:49 +0200
commit4a170da6dcdabfc35196c7564c732591c9d0d8cb (patch)
tree1ef9a5b643a620faf677e4f3f62191f5f3fa7b25 /Modules/signalmodule.c
parent20381b76804aea1f22b84d8f6dd9826f61c8abf8 (diff)
downloadcpython-4a170da6dcdabfc35196c7564c732591c9d0d8cb.tar.gz
Issue #4591: Uid and gid values larger than 2**31 are supported now.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index c81de6f383..41acbfa9da 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -4,6 +4,9 @@
/* XXX Signals should be recorded per thread, now we have thread state. */
#include "Python.h"
+#ifndef MS_WINDOWS
+#include "posixmodule.h"
+#endif
#ifdef MS_WINDOWS
#include <Windows.h>
@@ -728,7 +731,7 @@ fill_siginfo(siginfo_t *si)
PyStructSequence_SET_ITEM(result, 1, PyLong_FromLong((long)(si->si_code)));
PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong((long)(si->si_errno)));
PyStructSequence_SET_ITEM(result, 3, PyLong_FromPid(si->si_pid));
- PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong((long)(si->si_uid)));
+ PyStructSequence_SET_ITEM(result, 4, _PyLong_FromUid(si->si_uid));
PyStructSequence_SET_ITEM(result, 5,
PyLong_FromLong((long)(si->si_status)));
PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));