Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Fix includes and add glib version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaron committed May 23, 2007
1 parent 3579c1d commit a39c9c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xpfe/bootstrap/nsSigHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@

#include <signal.h>
#include <stdio.h>
#include <string.h>
#include "prthread.h"
#include "plstr.h"
#include "prenv.h"
#include "nsDebug.h"

#if defined(LINUX)
#include <sys/time.h>
Expand All @@ -70,7 +72,6 @@

#ifdef MOZ_WIDGET_PHOTON
#include <photon/PhProto.h>
#include <string.h>
#endif

static char _progname[1024] = "huh?";
Expand Down Expand Up @@ -157,7 +158,7 @@ void beos_signal_handler(int signum) {
}
#endif

#ifdef MOZ_WIDGET_GTK2
#ifdef MOZ_WIDGET_GTK2 && GLIB_CHECK_VERSION(2,6,0)

#include <glib.h>

Expand Down Expand Up @@ -254,7 +255,7 @@ void InstallUnixSignalHandlers(const char *ProgramName)
signal(SIGTERM, beos_signal_handler);
#endif

#ifdef MOZ_WIDGET_GTK2
#ifdef MOZ_WIDGET_GTK2 && GLIB_CHECK_VERSION(2,6,0)
const char *assertString = PR_GetEnv("XPCOM_DEBUG_BREAK");
if (assertString &&
(!strcmp(assertString, "suspend") ||
Expand Down

0 comments on commit a39c9c1

Please sign in to comment.