From 09926623969edc862eeb0a456fac7d62e1528076 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 3 Jan 2016 02:38:04 +0100 Subject: [PATCH] Attempt to fix compilation on BSD --- CMakeLists.txt | 1 + src/tint.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 697013a..d5b3b89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ else() find_library(EXECINFO_LIBRARIES NAMES execinfo) if(EXECINFO_LIBRARIES) set(EXECINFO_FOUND TRUE) + set(EXECINFO_LIBRARIES "-lexecinfo") set(BACKTRACE_L_FLAGS "-rdynamic") endif() endif() diff --git a/src/tint.c b/src/tint.c index e867a4a..4eb5481 100644 --- a/src/tint.c +++ b/src/tint.c @@ -146,7 +146,7 @@ const char *signal_name(int sig) case SIGPIPE: return "SIGPIPE: Broken pipe (POSIX)."; case SIGALRM: return "SIGALRM: Alarm clock (POSIX)."; case SIGTERM: return "SIGTERM: Termination (ANSI)."; - case SIGSTKFLT: return "SIGSTKFLT: Stack fault."; + //case SIGSTKFLT: return "SIGSTKFLT: Stack fault."; case SIGCHLD: return "SIGCHLD: Child status has changed (POSIX)."; case SIGCONT: return "SIGCONT: Continue (POSIX)."; case SIGSTOP: return "SIGSTOP: Stop, unblockable (POSIX)."; @@ -160,7 +160,7 @@ const char *signal_name(int sig) case SIGPROF: return "SIGPROF: Profiling alarm clock (4.2 BSD)."; case SIGWINCH: return "SIGWINCH: Window size change (4.3 BSD, Sun)."; case SIGIO: return "SIGIO: Pollable event occurred (System V) / I/O now possible (4.2 BSD)."; - case SIGPWR: return "SIGPWR: Power failure restart (System V)."; + //case SIGPWR: return "SIGPWR: Power failure restart (System V)."; case SIGSYS: return "SIGSYS: Bad system call."; } static char s[64];