Skip to content
Snippets Groups Projects
Commit 61083ede authored by dbaron%dbaron.org's avatar dbaron%dbaron.org
Browse files

Don't bother with strsignal on Linux, since the portability problems aren't...

Don't bother with strsignal on Linux, since the portability problems aren't worth it.  b=177912  r=bryner  sr=dmose
parent 833e59e0
No related branches found
No related tags found
No related merge requests found
......@@ -67,12 +67,6 @@
#include "nsIAppShellService.h"
#include "nsAppShellCIDs.h"
static NS_DEFINE_CID(kAppShellServiceCID, NS_APPSHELL_SERVICE_CID);
#elif defined(LINUX)
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
#include <string.h>
#else
extern "C" char * strsignal(int);
#endif
#endif
#ifdef MOZ_WIDGET_PHOTON
......@@ -125,18 +119,10 @@ ah_crap_handler(int signum)
{
PR_GetCurrentThread();
// I don't think strsignal is portable. If it is, this can be changed.
#ifdef LINUX
printf("\nProgram %s (pid = %d) received %s signal.\n",
_progname,
getpid(),
strsignal(signum));
#else
printf("\nProgram %s (pid = %d) received signal %d.\n",
_progname,
getpid(),
signum);
#endif
printf("Stack:\n");
DumpStackToFile(stdout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment