Skip to content

Commit

Permalink
kernel: don't use HAVE_BACKTRACE in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Feb 15, 2019
1 parent 0762665 commit 812951f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@ void InstallBacktraceHandlers(void)
signal(SIGFPE, BacktraceHandler);
}

#else

void InstallBacktraceHandlers(void)
{
}

#endif
2 changes: 0 additions & 2 deletions src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
#endif


#if defined(HAVE_BACKTRACE) && defined(PRINT_BACKTRACE)
void InstallBacktraceHandlers(void);
#endif

#endif
2 changes: 0 additions & 2 deletions src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,7 @@ int realmain( int argc, char * argv[] )
#if !defined(COMPILECYGWINDLL)
int main ( int argc, char * argv[] )
{
#if defined(HAVE_BACKTRACE) && defined(PRINT_BACKTRACE)
InstallBacktraceHandlers();
#endif

#ifdef HPCGAP
RunThreadedMain(realmain, argc, argv);
Expand Down

0 comments on commit 812951f

Please sign in to comment.