Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17)

Side by Side Diff: Modules/signalmodule.c

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Modules/Setup.dist ('k') | Modules/socketmodule.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* Signal module -- many thanks to Lance Ellinghaus */ 2 /* Signal module -- many thanks to Lance Ellinghaus */
3 3
4 /* XXX Signals should be recorded per thread, now we have thread state. */ 4 /* XXX Signals should be recorded per thread, now we have thread state. */
5 5
6 #include "Python.h" 6 #include "Python.h"
7 7
8 #ifdef __MINGW32__
9 /* GCC 4.4+ (mingw) support posix threads!
10 Note: macro __MINGW_GCC is defined for GCC 4.4+ but
11 not for GCC 3.4.5 (last stable from 3.x )
12 Instead to use __MINGW_GCC we will use more common
13 __MINGW32__ to prevent case when in GCC 3.4.5 build
14 envirionment is installed posix thread package.
15 */
16 # undef HAVE_PTHREAD_KILL
17 #endif
18
19 #if defined(__CYGWIN__)
20 /* Type siginfo_t is different on cygwin. For instance si_band is not
21 * a member of structure, so until fill_siginfo(siginfo_t *si) is
22 * ported properly lets "undef" sigwaitinfo and sigtimedwait to
23 * avoid build failure in fill_siginfo(..).
24 */
25 # undef HAVE_SIGWAITINFO
26 # undef HAVE_SIGTIMEDWAIT
27 #endif
28
8 #ifdef MS_WINDOWS 29 #ifdef MS_WINDOWS
9 #include <Windows.h> 30 #include <windows.h>
10 #ifdef HAVE_PROCESS_H 31 #ifdef HAVE_PROCESS_H
11 #include <process.h> 32 #include <process.h>
12 #endif 33 #endif
13 #endif 34 #endif
14 35
15 #ifdef HAVE_SIGNAL_H 36 #ifdef HAVE_SIGNAL_H
16 #include <signal.h> 37 #include <signal.h>
17 #endif 38 #endif
18 #ifdef HAVE_SYS_STAT_H 39 #ifdef HAVE_SYS_STAT_H
19 #include <sys/stat.h> 40 #include <sys/stat.h>
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 void *_PyOS_SigintEvent(void) 1460 void *_PyOS_SigintEvent(void)
1440 { 1461 {
1441 /* Returns a manual-reset event which gets tripped whenever 1462 /* Returns a manual-reset event which gets tripped whenever
1442 SIGINT is received. 1463 SIGINT is received.
1443 1464
1444 Python.h does not include windows.h so we do cannot use HANDLE 1465 Python.h does not include windows.h so we do cannot use HANDLE
1445 as the return type of this function. We use void* instead. */ 1466 as the return type of this function. We use void* instead. */
1446 return sigint_event; 1467 return sigint_event;
1447 } 1468 }
1448 #endif 1469 #endif
OLDNEW
« no previous file with comments | « Modules/Setup.dist ('k') | Modules/socketmodule.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+