]> code.ossystems Code Review - openembedded-core.git/blob
840666f30271acf413a9f6e2f6ce30067ef614d2
[openembedded-core.git] /
1 From b1de2c6290bc0651fe87a8c4fb52e7a0a5fe6322 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sun, 5 Oct 2014 16:01:49 -0700
4 Subject: [PATCH] gsystem-subprocess.c: Enable GNU extensions in system  C
5  library
6
7 This should export O_CLOEXEC where it is only
8 available when _GNU_SOURCE is defined .e.g. uclibc based systems
9
10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12 Upstream-Status: Pending
13
14 ---
15  src/libgsystem/gsystem-subprocess.c | 4 ++++
16  1 file changed, 4 insertions(+)
17
18 diff --git a/src/libgsystem/gsystem-subprocess.c b/src/libgsystem/gsystem-subprocess.c
19 index a967896..a52a362 100644
20 --- a/src/libgsystem/gsystem-subprocess.c
21 +++ b/src/libgsystem/gsystem-subprocess.c
22 @@ -18,6 +18,10 @@
23  
24  #include "config.h"
25  
26 +#ifndef _GNU_SOURCE
27 +#define _GNU_SOURCE
28 +#endif
29 +
30  #define _GSYSTEM_NO_LOCAL_ALLOC
31  #include "libgsystem.h"
32  
33 -- 
34 2.1.1
35