aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch
blob: 6721d2b5e54d09f79a5b9cfa031b34ef4f443a50 (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
From d977b5170027926eb97ab9742ddc51d2a5555a34 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 14 Jul 2017 10:06:49 -0700
Subject: [PATCH] lmon16g.c: Adjust system headers

fstab.h is unused
errno.h is in /usr/include
defines from sys/cdefs.h is used

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 lmon16m.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lmon16m.c b/lmon16m.c
index cb27e09..d2a11c5 100644
--- a/lmon16m.c
+++ b/lmon16m.c
@@ -63,7 +63,7 @@ static char *SccsId = "nmon " VERSION;
 #include <fcntl.h>
 #include <math.h>
 #include <time.h>
-#include <sys/errno.h>
+#include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
@@ -71,6 +71,7 @@ static char *SccsId = "nmon " VERSION;
 #include <sys/time.h>
 #include <sys/socket.h>
 #include <sys/wait.h>
+#include <sys/cdefs.h>
 
 /* Windows moved here so they can be cleared when the screen mode changes */
 WINDOW *padwelcome = NULL;
@@ -576,7 +577,6 @@ struct procsinfo {
 int isroot = 0;
 
 #include <mntent.h>
-#include <fstab.h>
 #include <sys/stat.h>
 #include <sys/statfs.h>
 #include <net/if.h>
-- 
2.13.3