mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
gzip: gcc2 patch for 1.10.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From d3377bee761bdb0abbd141fa86bf82af497f157e Mon Sep 17 00:00:00 2001
|
||||
From b20ebcc4a50426942827a18edbff3a60f46d016d Mon Sep 17 00:00:00 2001
|
||||
From: fbrosson <fbrosson@localhost>
|
||||
Date: Tue, 26 Apr 2016 21:03:14 +0000
|
||||
Subject: Do not try to create hard links.
|
||||
@@ -21,7 +21,7 @@ index d4ecc3f..9c0b0f7 100644
|
||||
2.19.1
|
||||
|
||||
|
||||
From 7978312f3c2c056502d014b88b928032a6ba1124 Mon Sep 17 00:00:00 2001
|
||||
From e7a269065e8423a0e1666fcae5f5ec5732823ccd Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Tue, 2 Oct 2018 15:27:27 +0200
|
||||
Subject: gcc2 patch
|
||||
@@ -104,6 +104,29 @@ index 329c9a5..83dc38a 100644
|
||||
extern void display_ratio (off_t num, off_t den, FILE *file);
|
||||
extern void fprint_off (FILE *, off_t, int);
|
||||
|
||||
diff --git a/lib/filenamecat-lgpl.c b/lib/filenamecat-lgpl.c
|
||||
index f50ecc1..7bdd4fc 100644
|
||||
--- a/lib/filenamecat-lgpl.c
|
||||
+++ b/lib/filenamecat-lgpl.c
|
||||
@@ -51,6 +51,8 @@ mfile_name_concat (char const *dir, char const *base, char **base_in_result)
|
||||
size_t dirlen = dirbase - dir + dirbaselen;
|
||||
size_t baselen = strlen (base);
|
||||
char sep = '\0';
|
||||
+ char *p_concat;
|
||||
+ char *p;
|
||||
if (dirbaselen)
|
||||
{
|
||||
/* DIR is not a file system root, so separate with / if needed. */
|
||||
@@ -67,8 +69,7 @@ mfile_name_concat (char const *dir, char const *base, char **base_in_result)
|
||||
sep = '.';
|
||||
}
|
||||
|
||||
- char *p_concat = malloc (dirlen + (sep != '\0') + baselen + 1);
|
||||
- char *p;
|
||||
+ p_concat = malloc (dirlen + (sep != '\0') + baselen + 1);
|
||||
|
||||
if (p_concat == NULL)
|
||||
return NULL;
|
||||
diff --git a/lib/stdnoreturn.in.h b/lib/stdnoreturn.in.h
|
||||
index b1d709d..d26a612 100644
|
||||
--- a/lib/stdnoreturn.in.h
|
||||
|
||||
Reference in New Issue
Block a user