void-packages/srcpkgs/powertop/patches/musl-fix-headers.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

22 lines
471 B
Diff

--- a/src/devices/devfreq.h
+++ b/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
--- a/src/perf/perf.h
+++ b/src/perf/perf.h
@@ -26,6 +26,7 @@
#define _INCLUDE_GUARD_PERF_H_
#include <iostream>
+#include <stdio.h>
extern "C" {