# # old_revision [3fe444996883cc54a95f94bd89d9fba641d08c20] # # add_file "packages/gcc/gcc-4.2.2/libiberty-strsignal-psignal-workaround.patch" # content [0cf70fee3b4311e8123b2ae87d765dc9c2cbd220] # # patch "packages/gcc/gcc_4.2.2.bb" # from [53244c4e795291ca862fb5b92fb62d5191081c67] # to [abd274483d4c80859d2cf098221d57544bca5519] # ============================================================ --- packages/gcc/gcc-4.2.2/libiberty-strsignal-psignal-workaround.patch 0cf70fee3b4311e8123b2ae87d765dc9c2cbd220 +++ packages/gcc/gcc-4.2.2/libiberty-strsignal-psignal-workaround.patch 0cf70fee3b4311e8123b2ae87d765dc9c2cbd220 @@ -0,0 +1,12 @@ +Index: gcc-4.2.2/libiberty/strsignal.c +=================================================================== +--- gcc-4.2.2.orig/libiberty/strsignal.c 2007-11-18 13:30:11.000000000 +0100 ++++ gcc-4.2.2/libiberty/strsignal.c 2007-11-18 13:30:13.000000000 +0100 +@@ -19,6 +19,7 @@ + #define sys_nsig sys_nsig__no_such_symbol + + #include ++#undef __USE_MISC /* workaround to avoid error: "conflicting types for 'psignal'" */ + #include + + /* Routines imported from standard C runtime libraries. */ ============================================================ --- packages/gcc/gcc_4.2.2.bb 53244c4e795291ca862fb5b92fb62d5191081c67 +++ packages/gcc/gcc_4.2.2.bb abd274483d4c80859d2cf098221d57544bca5519 @@ -40,6 +40,7 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gcc file://cache-amnesia.patch;patch=1 \ file://gfortran.patch;patch=1 \ file://pr34130.patch;patch=1 \ + file://libiberty-strsignal-psignal-workaround.patch;patch=1 \ " SRC_URI_append_ep93xx = " \