diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-07-14 18:55:36 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-07-24 18:57:36 +0200 |
commit | 92d9eabbf6b0f866f2402be5cdedddb25a55163a (patch) | |
tree | 3017eceb503e6f01a5de24c69587ca40d771f440 /meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch | |
parent | 222db35a89fa12badfc3e3339eae0ab6d47459e9 (diff) | |
download | meta-openembedded-92d9eabbf6b0f866f2402be5cdedddb25a55163a.tar.gz |
nmon: Upgrade to 16g
Fix build with musl while here.
link with libm for ceilf API
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch')
-rw-r--r-- | meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch b/meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch new file mode 100644 index 000000000..e8debe56a --- /dev/null +++ b/meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From d977b5170027926eb97ab9742ddc51d2a5555a34 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 14 Jul 2017 10:06:49 -0700 | ||
4 | Subject: [PATCH] lmon16g.c: Adjust system headers | ||
5 | |||
6 | fstab.h is unused | ||
7 | errno.h is in /usr/include | ||
8 | defines from sys/cdefs.h is used | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | lmon16g.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/lmon16g.c b/lmon16g.c | ||
16 | index cb27e09..d2a11c5 100644 | ||
17 | --- a/lmon16g.c | ||
18 | +++ b/lmon16g.c | ||
19 | @@ -63,7 +63,7 @@ static char *SccsId = "nmon " VERSION; | ||
20 | #include <fcntl.h> | ||
21 | #include <math.h> | ||
22 | #include <time.h> | ||
23 | -#include <sys/errno.h> | ||
24 | +#include <errno.h> | ||
25 | #include <sys/types.h> | ||
26 | #include <sys/stat.h> | ||
27 | #include <sys/ioctl.h> | ||
28 | @@ -71,6 +71,7 @@ static char *SccsId = "nmon " VERSION; | ||
29 | #include <sys/time.h> | ||
30 | #include <sys/socket.h> | ||
31 | #include <sys/wait.h> | ||
32 | +#include <sys/cdefs.h> | ||
33 | |||
34 | /* Windows moved here so they can be cleared when the screen mode changes */ | ||
35 | WINDOW *padwelcome = NULL; | ||
36 | @@ -576,7 +577,6 @@ struct procsinfo { | ||
37 | int isroot = 0; | ||
38 | |||
39 | #include <mntent.h> | ||
40 | -#include <fstab.h> | ||
41 | #include <sys/stat.h> | ||
42 | #include <sys/statfs.h> | ||
43 | #include <net/if.h> | ||
44 | -- | ||
45 | 2.13.3 | ||
46 | |||