powertop: fix musl compile with headers patch from alpine
This commit is contained in:
		
							
								
								
									
										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' | ||||
| pkgname=powertop | ||||
| version=2.7 | ||||
| revision=2 | ||||
| revision=3 | ||||
| build_style=gnu-configure | ||||
| configure_args="--sbindir=/usr/bin" | ||||
| hostmakedepends="pkg-config" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Eivind Uggedal
					Eivind Uggedal