Skip to content

Commit

Permalink
Fix signalhandling to compile for FreeBSD as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Oct 1, 2012
1 parent 62aa75b commit aaa9fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythbase/signalhandling.cpp
Expand Up @@ -65,7 +65,7 @@ SignalHandler::SignalHandler(QList<int> &signallist, QObject *parent) :

m_sigStack = new char[SIGSTKSZ];
stack_t stack;
stack.ss_sp = (void *)m_sigStack;
stack.ss_sp = m_sigStack;
stack.ss_flags = 0;
stack.ss_size = SIGSTKSZ;

Expand Down Expand Up @@ -209,7 +209,7 @@ void SignalHandler::signalHandler(int signum, siginfo_t *info, void *context)
signalInfo.code = (info ? info->si_code : 0);
signalInfo.pid = (info ? (int)info->si_pid : 0);
signalInfo.uid = (info ? (int)info->si_uid : 0);
signalInfo.value = (info ? (uint64_t)info->si_ptr : 0);
signalInfo.value = (info ? *(uint64_t *)&info->si_value : 0);

// Keep trying if there's no room to write, but stop on error (-1)
int index = 0;
Expand Down

0 comments on commit aaa9fc2

Please sign in to comment.