mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
32 lines
921 B
Diff
32 lines
921 B
Diff
--- gcc-2.95.3/gcc/collect2.c
|
|
+++ gcc-2.95.3/gcc/collect2.c
|
|
@@ -1824,7 +1824,7 @@ collect_execute (prog, argv, redir)
|
|
if (redir)
|
|
{
|
|
/* Open response file. */
|
|
- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
|
|
+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
|
|
|
|
/* Duplicate the stdout and stderr file handles
|
|
so they can be restored later. */
|
|
--- gcc-2.95.3/libiberty/strerror.c 2012-02-17 20:46:45.643806527 -0800
|
|
+++ gcc-2.95.3/libiberty/strerror.c 2012-02-17 20:49:54.372029811 -0800
|
|
@@ -7,6 +7,8 @@
|
|
|
|
#include "config.h"
|
|
|
|
+#define HAVE_SYS_ERRLIST
|
|
+
|
|
#ifdef HAVE_SYS_ERRLIST
|
|
/* Note that errno.h (not sure what OS) or stdio.h (BSD 4.4, at least)
|
|
might declare sys_errlist in a way that the compiler might consider
|
|
@@ -463,7 +464,7 @@
|
|
#else
|
|
|
|
extern int sys_nerr;
|
|
-extern char *sys_errlist[];
|
|
+extern const char *const sys_errlist[];
|
|
|
|
#endif
|
|
|