powertop: fix musl compile with headers patch from alpine
This commit is contained in:
parent
0f487e505a
commit
b3882b2a5f
2 changed files with 23 additions and 1 deletions
srcpkgs/powertop
22
srcpkgs/powertop/patches/musl-fix-headers.patch
Normal file
22
srcpkgs/powertop/patches/musl-fix-headers.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- src/devices/devfreq.h.orig
|
||||||
|
+++ src/devices/devfreq.h
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
#ifndef _INCLUDE_GUARD_DEVFREQ_H
|
||||||
|
#define _INCLUDE_GUARD_DEVFREQ_H
|
||||||
|
|
||||||
|
+#include <sys/time.h>
|
||||||
|
#include "device.h"
|
||||||
|
#include "../parameters/parameters.h"
|
||||||
|
|
||||||
|
diff --git a/src/perf/perf.h b/src/perf/perf.h
|
||||||
|
index ee072ae06d24..932588a684f9 100644
|
||||||
|
--- src/perf/perf.h.orig
|
||||||
|
+++ src/perf/perf.h
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
#define _INCLUDE_GUARD_PERF_H_
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
+#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
|
extern "C" {
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'powertop'
|
# Template file for 'powertop'
|
||||||
pkgname=powertop
|
pkgname=powertop
|
||||||
version=2.7
|
version=2.7
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin"
|
configure_args="--sbindir=/usr/bin"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
|
|
Loading…
Reference in a new issue