Backport libdbusc++ from poky upstream
[AGL/meta-agl-demo.git] / recipes-core / dbus / libdbus-c++-0.9.0 / fix-missing-unistd.h-include.patch
1
2 sniped from ChromiumOS
3
4 https://bugs.gentoo.org/424707
5
6 From 154f7861d19a2bd5c79c488f9989610971db451b Mon Sep 17 00:00:00 2001
7 From: Han Shen <shenhan@google.com>
8 Date: Thu, 31 May 2012 16:49:35 -0700
9 Subject: [PATCH] Fixed dbus-c++ gcc 4.7 building problem.
10
11 Just add "unistd.h" inclusion to eventloop-integration.h.
12
13 BUG=None
14 TEST=Manually built using gcc 4.7.
15
16 Change-Id: I87bd1f90db6a4c974a5ed8134044e8be2034aff2
17 Reviewed-on: https://gerrit.chromium.org/gerrit/24260
18 Tested-by: Han Shen <shenhan@google.com>
19 Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
20 Commit-Ready: Han Shen <shenhan@chromium.org>
21 Upstream-Status: Inappropriate [ not author, no upstream ]
22 Signed-off-by: Thilo Cestonaro <thilo.cestonaro@ts.fujitsu.com>
23 ---
24  include/dbus-c++/eventloop-integration.h |    1 +
25  1 file changed, 1 insertion(+)
26
27 diff --git a/include/dbus-c++/eventloop-integration.h b/include/dbus-c++/eventloop-integration.h
28 index 5108340..1b56ab5 100644
29 --- a/include/dbus-c++/eventloop-integration.h
30 +++ b/include/dbus-c++/eventloop-integration.h
31 @@ -27,6 +27,7 @@
32  
33  #include <cstring>
34  #include <errno.h>
35 +#include <unistd.h>
36  #include "api.h"
37  #include "dispatcher.h"
38  #include "util.h"
39 -- 
40 1.7.9.7