package/libsoup: fix build with gcc 4.8
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 1 Jul 2021 20:21:47 +0000 (22:21 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 17 Jul 2021 08:04:50 +0000 (10:04 +0200)
commit32e085527f5ad988f1f37cd52de689f8f1a964b3
treeb9fc2489c5cfd9b826acef32615082581b1b7823
parent7bd57831e991ea1239687b83cc94b306f21b9031
package/libsoup: fix build with gcc 4.8

Fix build failure with gcc 4.8 which is raised since bump to version
2.72.0 in commit 8e5f7f1cfc8fd7a9d5270f6a9707eb9eecfd21da:

In file included from /tmp/instance-0/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/resolv.h:65:0,
                 from /tmp/instance-0/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/glib-2.0/gio/gnetworking.h:40,
                 from ../libsoup/soup-address.c:14:
/tmp/instance-0/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/arpa/nameser.h:115:2: error: unknown type name 'u_char'
  const u_char *_msg, *_eom;
  ^

Fixes:
 - http://autobuild.buildroot.org/results/56b9cb987e25b99d6fed16c537552f47c3376f21

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Adrian Perez de Castro <aperez@igalia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libsoup/0001-meson.build-set-c_std-to-gnu99.patch [new file with mode: 0644]