powertop: fix musl compile with headers patch from alpine

This commit is contained in:
Eivind Uggedal 2015-05-08 20:42:23 +00:00
parent 0f487e505a
commit b3882b2a5f
2 changed files with 23 additions and 1 deletions

View 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" {

View file

@ -1,7 +1,7 @@
# Template file for 'powertop'
pkgname=powertop
version=2.7
revision=2
revision=3
build_style=gnu-configure
configure_args="--sbindir=/usr/bin"
hostmakedepends="pkg-config"