dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / by-name / pm / pmars / 0002-fix-sighandler.patch
blob82fb19fe7ba90678bdcfd7d5174df44e082360ed
1 diff '--color=auto' -ruN a/src/pmars.c b/src/pmars.c
2 --- a/src/pmars.c 2024-11-12 20:36:28.142766807 +0100
3 +++ b/src/pmars.c 2024-11-12 20:39:48.096710063 +0100
4 @@ -72,7 +72,7 @@
5 #ifdef PSPACE
6 void pspace_init(void);
7 #endif
8 -#if defined(unix) || defined(__MSDOS__) || defined(VMS)
9 +#if defined(unix) || defined(__MSDOS__) || defined(VMS) || defined(__MACH__)
10 void sighandler(int dummy);
11 #endif
12 #if defined(CURSESGRAPHX)
13 @@ -87,7 +87,7 @@
14 #ifdef PSPACE
15 void pspace_init();
16 #endif
17 -#if defined(unix) || defined(__MSDOS__)
18 +#if defined(unix) || defined(__MSDOS__) || defined(__MACH__)
19 void sighandler();
20 #endif
21 #if defined(CURSESGRAPHX)
22 @@ -224,7 +224,7 @@
25 /* called when ctrl-c is pressed; prepares for debugger entry */
26 -#if defined(unix) || defined(__MSDOS__) || defined (__OS2__)
27 +#if defined(unix) || defined(__MSDOS__) || defined (__OS2__) || defined(__MACH__)
28 void
29 #ifdef __OS2__
30 _cdecl
31 @@ -290,7 +290,7 @@
32 int argc;
33 char **argv;
35 -#if defined(unix) && !defined(DJGPP)
36 +#if (defined(unix) && !defined(DJGPP)) || defined(__MACH__)
37 #ifdef SIGINT
38 signal(SIGINT, sighandler);
39 #endif
40 diff '--color=auto' -ruN a/src/xwindisp.c b/src/xwindisp.c
41 --- a/src/xwindisp.c 2024-11-12 20:36:28.143766827 +0100
42 +++ b/src/xwindisp.c 2024-11-12 20:37:39.708178145 +0100
43 @@ -61,6 +61,9 @@
44 #define YELLOW 14
45 #define WHITE 15
47 +/* defined in pmars.c */
48 +extern void sighandler(int dummy);
50 /* X names of the colors we allocate */
51 static char *xColorNames[MAXXCOLOR] = {
52 "black", "blue3", "green3", "cyan3",