hddtemp: fix build (glibc-2.26)

This commit is contained in:
Michael Gehring 2017-08-05 16:58:26 +00:00
parent bd2472c7bd
commit f4c2789b17
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
--- src/backtrace.c.orig 2017-08-05 16:57:00.000000000 +0000
+++ src/backtrace.c 2017-08-05 16:57:21.552276793 +0000
@@ -42,7 +42,7 @@
#define MAX_BTSIZE 64
void backtrace_handler(int n, siginfo_t *ist, void *extra) {
- static struct ucontext *puc;
+ static ucontext_t *puc;
static void *btinfo[MAX_BTSIZE];
static char **messages = NULL;
static size_t btsize = 0;
@@ -58,7 +58,7 @@
#define SIC_CASE(c) case c: strerr = #c
- puc = (struct ucontext *)extra;
+ puc = (ucontext_t *)extra;
switch(n) {
case SIGSEGV:
switch(ist->si_code) {

View File

@ -1,7 +1,7 @@
# Template file for 'hddtemp'
pkgname=hddtemp
version=0.3.beta15
revision=1
revision=2
wrksrc="${pkgname}-${version/.beta/-beta}"
build_style=gnu-configure
configure_args="--with-db-path=/usr/share/hddtemp/hddtemp.db"