Check if BUS_MCEERR_AR and BUS_MCEERR_AO are defined.

This commit is contained in:
Bartosz Taudul 2020-02-12 01:27:03 +01:00
parent f562ff780c
commit 838c0aaaa9

View File

@ -792,12 +792,16 @@ static void CrashHandler( int signal, siginfo_t* info, void* /*ucontext*/ )
case BUS_OBJERR: case BUS_OBJERR:
strcpy( msgPtr, "Object-specific hardware error.\n" ); strcpy( msgPtr, "Object-specific hardware error.\n" );
break; break;
# ifdef BUS_MCEERR_AR
case BUS_MCEERR_AR: case BUS_MCEERR_AR:
strcpy( msgPtr, "Hardware memory error consumed on a machine check; action required.\n" ); strcpy( msgPtr, "Hardware memory error consumed on a machine check; action required.\n" );
break; break;
# endif
# ifdef BUS_MCEERR_AO
case BUS_MCEERR_AO: case BUS_MCEERR_AO:
strcpy( msgPtr, "Hardware memory error detected in process but not consumed; action optional.\n" ); strcpy( msgPtr, "Hardware memory error detected in process but not consumed; action optional.\n" );
break; break;
# endif
default: default:
break; break;
} }