1From 5c3d431bdb094c59997f2a23e31e83f815ab667c Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Thu, 1 Jul 2021 22:09:23 +0200
4Subject: [PATCH] meson.build: set c_std to gnu99
5
6Set c_std to gnu99 to avoid the following build failure with gcc 4.8:
7
8In file included from /tmp/instance-0/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/resolv.h:65:0,
9                 from /tmp/instance-0/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/glib-2.0/gio/gnetworking.h:40,
10                 from ../libsoup/soup-address.c:14:
11/tmp/instance-0/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/arpa/nameser.h:115:2: error: unknown type name 'u_char'
12  const u_char *_msg, *_eom;
13  ^
14
15Fixes:
16 - http://autobuild.buildroot.org/results/56b9cb987e25b99d6fed16c537552f47c3376f21
17
18Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
19[Upstream status:
20https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/241]
21---
22 meson.build | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/meson.build b/meson.build
26index 4dfd8c15..a5ebc63a 100644
27--- a/meson.build
28+++ b/meson.build
29@@ -2,6 +2,6 @@ project('libsoup', 'c',
30         version: '2.74.0',
31         meson_version : '>= 0.50',
32         license : 'LGPL2',
33-        default_options : 'c_std=c99')
34+        default_options : 'c_std=gnu99')
35
36 gnome = import('gnome')
37
38--
392.30.2
40
41