diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-03 21:02:14 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-04 05:40:09 +0700 |
commit | 8ec75fa68d140f8c45c10c9f3b0407dc8e20285f (patch) | |
tree | b107d6fb299f0155135e45e3af3929bbe6270caa /system/hddtemp/hddtemp.patch | |
parent | 6da1dbfb2662b49e559888db60e14a218f01e6a1 (diff) | |
download | slackbuilds-8ec75fa68d140f8c45c10c9f3b0407dc8e20285f.tar.gz |
system/hddtemp: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/hddtemp/hddtemp.patch')
-rw-r--r-- | system/hddtemp/hddtemp.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/hddtemp/hddtemp.patch b/system/hddtemp/hddtemp.patch new file mode 100644 index 0000000000..904a674c93 --- /dev/null +++ b/system/hddtemp/hddtemp.patch @@ -0,0 +1,24 @@ +__USE_GNU needs to be in effect when including sys/ucontext.h, +and signal.h pulls it in in some setups. + +diff -up hddtemp-0.3-beta15/src/backtrace.c~ hddtemp-0.3-beta15/src/backtrace.c +--- hddtemp-0.3-beta15/src/backtrace.c~ 2006-04-19 05:38:14.000000000 +0300 ++++ hddtemp-0.3-beta15/src/backtrace.c 2010-02-14 21:59:47.000000000 +0200 +@@ -27,13 +27,12 @@ + #include <stdlib.h> + #include <unistd.h> + #include <linux/ptrace.h> ++#define __USE_GNU ++#include <ucontext.h> + #include <signal.h> + #include <bits/sigcontext.h> + #include <sys/param.h> + +-#define __USE_GNU +-#include <ucontext.h> +- + #define MAX_BTSIZE 64 + + void backtrace_handler(int n, siginfo_t *ist, void *extra) { + + |