X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fbluez5_utils%2F0002-src-shared-ecc.c-include-config.h.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fbluez5_utils%2F0002-src-shared-ecc.c-include-config.h.patch;h=f339c887b38d29ed81f8559a8ea3f2871dd62ebc;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/bluez5_utils/0002-src-shared-ecc.c-include-config.h.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/bluez5_utils/0002-src-shared-ecc.c-include-config.h.patch new file mode 100644 index 0000000..f339c88 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/bluez5_utils/0002-src-shared-ecc.c-include-config.h.patch @@ -0,0 +1,33 @@ +From 3c5a93d0be4457120d17da70918f9eb8799d6c52 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Thu, 1 Jan 2015 22:33:34 +0100 +Subject: [PATCH] src/shared/ecc.c: include + +The ecc.c file forgets to include . This causes build +failures with certain C libraries, because ecc.c uses O_CLOEXEC, which +is only available when _GNU_SOURCE is defined. And _GNU_SOURCE gets +defined by , so it should be included. + +Signed-off-by: Thomas Petazzoni +--- + src/shared/ecc.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/shared/ecc.c b/src/shared/ecc.c +index 33c4187..41be02b 100644 +--- a/src/shared/ecc.c ++++ b/src/shared/ecc.c +@@ -24,6 +24,10 @@ + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#ifdef HAVE_CONFIG_H ++#include ++#endif ++ + #include + #include + #include +-- +2.1.0 +