f339c887b38d29ed81f8559a8ea3f2871dd62ebc
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / bluez5_utils / 0002-src-shared-ecc.c-include-config.h.patch
1 From 3c5a93d0be4457120d17da70918f9eb8799d6c52 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 1 Jan 2015 22:33:34 +0100
4 Subject: [PATCH] src/shared/ecc.c: include <config.h>
5
6 The ecc.c file forgets to include <config.h>. This causes build
7 failures with certain C libraries, because ecc.c uses O_CLOEXEC, which
8 is only available when _GNU_SOURCE is defined. And _GNU_SOURCE gets
9 defined by <config.h>, so it should be included.
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ---
13  src/shared/ecc.c | 4 ++++
14  1 file changed, 4 insertions(+)
15
16 diff --git a/src/shared/ecc.c b/src/shared/ecc.c
17 index 33c4187..41be02b 100644
18 --- a/src/shared/ecc.c
19 +++ b/src/shared/ecc.c
20 @@ -24,6 +24,10 @@
21   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22   */
23  
24 +#ifdef HAVE_CONFIG_H
25 +#include <config.h>
26 +#endif
27 +
28  #include <fcntl.h>
29  #include <unistd.h>
30  #include <sys/types.h>
31 -- 
32 2.1.0
33