summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-oe/recipes-support/atop/atop/0001-include-missing-header-files.patch
blob: 3708f60ba0a2b1bf7e7cc358bc798b3e45f72369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
From 7b651793269b6b86f12c43c30b751b86def27222 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 18 Mar 2017 17:56:40 -0700
Subject: [PATCH] include missing header files

fixes build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 deviate.c     | 1 +
 procdbase.c   | 2 +-
 showgeneric.c | 2 +-
 showlinux.c   | 2 +-
 showprocs.c   | 2 +-
 showsys.c     | 2 +-
 6 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/deviate.c b/deviate.c
index 7cf1b49..8e615af 100644
--- a/deviate.c
+++ b/deviate.c
@@ -178,6 +178,7 @@ static const char rcsid[] = "$Id: deviate.c,v 1.45 2010/10/23 14:02:03 gerlof Ex
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <limits.h>
 #include <memory.h>
diff --git a/procdbase.c b/procdbase.c
index 9cab347..0487d26 100644
--- a/procdbase.c
+++ b/procdbase.c
@@ -67,7 +67,7 @@ static const char rcsid[] = "$Id: procdbase.c,v 1.8 2010/04/23 12:19:35 gerlof E
 #include <fcntl.h>
 #include <unistd.h>
 #include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
 
 #include "atop.h"
 #include "photoproc.h"
diff --git a/showgeneric.c b/showgeneric.c
index 775afa8..3d5be0e 100644
--- a/showgeneric.c
+++ b/showgeneric.c
@@ -268,7 +268,7 @@ static const char rcsid[] = "$Id: showgeneric.c,v 1.71 2010/10/25 19:08:32 gerlo
 #include <errno.h>
 #include <fcntl.h>
 #include <string.h>
-#include <termio.h>
+#include <termios.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <curses.h>
diff --git a/showlinux.c b/showlinux.c
index 6e60754..aba2ee6 100644
--- a/showlinux.c
+++ b/showlinux.c
@@ -274,7 +274,7 @@ static const char rcsid[] = "$Id: showlinux.c,v 1.70 2010/10/23 14:04:12 gerlof
 #include <string.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <termio.h>
+#include <termios.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <curses.h>
diff --git a/showprocs.c b/showprocs.c
index 5194524..f0169ad 100644
--- a/showprocs.c
+++ b/showprocs.c
@@ -94,7 +94,7 @@ static const char rcsid[] = "$Id: showprocs.c,v 1.15 2011/09/05 11:44:16 gerlof
 #include <string.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <termio.h>
+#include <termios.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <curses.h>
diff --git a/showsys.c b/showsys.c
index 26331be..5a05fe5 100644
--- a/showsys.c
+++ b/showsys.c
@@ -80,7 +80,7 @@ static const char rcsid[] = "XXXXXX";
 #include <string.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <termio.h>
+#include <termios.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <curses.h>
-- 
2.12.0

OpenPOWER on IntegriCloud