From f514221a2adaebded3c33ea5d6d76bf880322611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Bac=C5=82awski?= Date: Fri, 17 Feb 2012 21:20:33 -0800 Subject: [PATCH] Fix compilation errors on MacOS X 10.7. --- patches/binutils-2.9.1/01_fix_gcc_4.4_errors.diff | 3 ++- patches/gcc-2.95.3/01_fix_gcc_4.4_errors.diff | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/patches/binutils-2.9.1/01_fix_gcc_4.4_errors.diff b/patches/binutils-2.9.1/01_fix_gcc_4.4_errors.diff index a997c66..4d478f4 100644 --- a/patches/binutils-2.9.1/01_fix_gcc_4.4_errors.diff +++ b/patches/binutils-2.9.1/01_fix_gcc_4.4_errors.diff @@ -85,8 +85,9 @@ @@ -463,7 +464,7 @@ #else - extern int sys_nerr; +-extern int sys_nerr; -extern char *sys_errlist[]; ++extern const int sys_nerr; +extern const char *const sys_errlist[]; #endif diff --git a/patches/gcc-2.95.3/01_fix_gcc_4.4_errors.diff b/patches/gcc-2.95.3/01_fix_gcc_4.4_errors.diff index 2971ddb..84f7c3d 100644 --- a/patches/gcc-2.95.3/01_fix_gcc_4.4_errors.diff +++ b/patches/gcc-2.95.3/01_fix_gcc_4.4_errors.diff @@ -23,8 +23,9 @@ @@ -463,7 +464,7 @@ #else - extern int sys_nerr; +-extern int sys_nerr; -extern char *sys_errlist[]; ++extern const int sys_nerr; +extern const char *const sys_errlist[]; #endif