summaryrefslogtreecommitdiffstats
path: root/recipes-extended/diffutils/diffutils/sdiff-no-kill.patch
blob: 70e7cafc75a9fd7c6fb4400e8bfb52f6486ea79d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"kill" is not supported by mingw, so compile conditionally,
(same condition as another instance of "kill" in the source code).

Upstream-Status: Pending
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>

--- a/src/sdiff.c
+++ b/src/sdiff.c
@@ -805,7 +805,9 @@
 
       /* Yield an exit status indicating that a signal was received.  */
       untrapsig (s);
+#if HAVE_WORKING_FORK
       kill (getpid (), s);
+#endif
 
       /* That didn't work, so exit with error status.  */
       exit (EXIT_TROUBLE);