summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/quota/quota/0004-Fix-warnings-due-to-missing-stdlib.h.patch
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2016-07-19 15:39:20 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:56:27 +0100
commitb6aa976756e24994a2c60086e5b8c9455c16bbb1 (patch)
tree01b50682f62e1d35049975ddc89f792953e6361d /meta/recipes-extended/quota/quota/0004-Fix-warnings-due-to-missing-stdlib.h.patch
parentb7a2688ac86056c1128876beb0d70be68849371b (diff)
downloadpoky-b6aa976756e24994a2c60086e5b8c9455c16bbb1.tar.gz
quota: make compile pass when disable rpc
When 'rpc' is not in PACKAGECONFIG, option '--disable-rpc' is passed to configure and then compile fails. Backport patches to make quota build successfully. Update fcntl.patch that part of the patches are added by 0002-Allow-building-on-systems-that-do-not-have-rpc-heade.patch. (From OE-Core rev: aff36f4c4d241707744fe13b6310fb894610a0f3) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/quota/quota/0004-Fix-warnings-due-to-missing-stdlib.h.patch')
-rw-r--r--meta/recipes-extended/quota/quota/0004-Fix-warnings-due-to-missing-stdlib.h.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-extended/quota/quota/0004-Fix-warnings-due-to-missing-stdlib.h.patch b/meta/recipes-extended/quota/quota/0004-Fix-warnings-due-to-missing-stdlib.h.patch
new file mode 100644
index 0000000000..bdb4ceaadd
--- /dev/null
+++ b/meta/recipes-extended/quota/quota/0004-Fix-warnings-due-to-missing-stdlib.h.patch
@@ -0,0 +1,46 @@
1Upstream-Status: Backport
2
3Signed-off-by: Kai Kang <kai.kang@windriver.com>
4---
5From c4b56ee58b9b76d2598535cf6109a27b22e60abe Mon Sep 17 00:00:00 2001
6From: Jan Kara <jack@suse.cz>
7Date: Wed, 30 Mar 2016 10:21:13 +0200
8Subject: [PATCH] Fix warnings due to missing stdlib.h
9
10When compiling without RPC, we do not get stdlib.h automatically
11included via other includes and thus miss some function definitions.
12Include stdlib.h explicitely.
13
14Signed-off-by: Jan Kara <jack@suse.cz>
15---
16 quotaops.c | 1 +
17 setquota.c | 1 +
18 2 files changed, 2 insertions(+)
19
20diff --git a/quotaops.c b/quotaops.c
21index 590dc1b..56cf622 100644
22--- a/quotaops.c
23+++ b/quotaops.c
24@@ -52,6 +52,7 @@
25 #include <time.h>
26 #include <ctype.h>
27 #include <limits.h>
28+#include <stdlib.h>
29
30 #if defined(RPC)
31 #include "rquota.h"
32diff --git a/setquota.c b/setquota.c
33index 8ecd9c3..421631e 100644
34--- a/setquota.c
35+++ b/setquota.c
36@@ -17,6 +17,7 @@
37 #include <getopt.h>
38 #include <time.h>
39 #include <ctype.h>
40+#include <stdlib.h>
41
42 #if defined(RPC)
43 #include "rquota.h"
44--
452.6.1
46