aboutsummaryrefslogtreecommitdiffstats
path: root/main/make/fix-atexit-exit.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-06 11:20:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-06 11:38:20 +0000
commit63cfa35c3faece43f4b86411bace1bea78b96a27 (patch)
treeb94e62342d890816657de13aa61a6c904c178948 /main/make/fix-atexit-exit.patch
parentf69cd6ee3f1a8b333301748fa8e6f02cf3c6eb07 (diff)
downloadaports-63cfa35c3faece43f4b86411bace1bea78b96a27.tar.gz
aports-63cfa35c3faece43f4b86411bace1bea78b96a27.tar.bz2
aports-63cfa35c3faece43f4b86411bace1bea78b96a27.tar.xz
main/make: upgrade to 4.1
Diffstat (limited to 'main/make/fix-atexit-exit.patch')
-rw-r--r--main/make/fix-atexit-exit.patch15
1 files changed, 7 insertions, 8 deletions
diff --git a/main/make/fix-atexit-exit.patch b/main/make/fix-atexit-exit.patch
index 1507a2a3b0..a71d26fb55 100644
--- a/main/make/fix-atexit-exit.patch
+++ b/main/make/fix-atexit-exit.patch
@@ -4,15 +4,14 @@ POSIX says the behaviour is undefined if atexit callback calls
exit(). On glibc it works, but on musl it does not. Call instead
_exit() which is guaranteed to work.
---- make-4.0/output.c.orig 2013-10-06 02:12:24.000000000 +0300
-+++ make-4.0/output.c 2013-10-18 15:43:23.502563018 +0300
-@@ -515,7 +515,7 @@
- error (NILF, _("write error: %s"), strerror (errno));
+--- ./output.c.orig
++++ ./output.c
+@@ -495,7 +495,7 @@
+ perror_with_name (_("write error: stdout"), "");
else
- error (NILF, _("write error"));
-- exit (EXIT_FAILURE);
-+ _exit (EXIT_FAILURE);
+ O (error, NILF, _("write error: stdout"));
+- exit (MAKE_TROUBLE);
++ _exit (MAKE_TROUBLE);
}
}
-