packages: hddtemp/hddtemp-reg_eip.patch (NEW) - added -reg_eip.patch (from ...
arvenil
arvenil at pld-linux.org
Sun Jun 6 02:32:58 CEST 2010
Author: arvenil Date: Sun Jun 6 00:32:58 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- added -reg_eip.patch (from fedora)
---- Files affected:
packages/hddtemp:
hddtemp-reg_eip.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/hddtemp/hddtemp-reg_eip.patch
diff -u /dev/null packages/hddtemp/hddtemp-reg_eip.patch:1.1
--- /dev/null Sun Jun 6 02:32:58 2010
+++ packages/hddtemp/hddtemp-reg_eip.patch Sun Jun 6 02:32:53 2010
@@ -0,0 +1,24 @@
+http://cvs.fedoraproject.org/viewvc/F-13/hddtemp/hddtemp-0.3-beta15-reg-eip.patch?revision=1.1&content-type=text%2Fplain&view=co
+
+__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) {
================================================================
More information about the pld-cvs-commit
mailing list