package/libglib2: fix build with glibc >= 2.34
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 4 Sep 2021 22:31:15 +0000 (00:31 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 11 Sep 2021 17:07:39 +0000 (19:07 +0200)
commitf53e59b8e2e04534e0b78a064a8ac1c46fb18ec9
tree55e2d78ea308fcb2694eaa627823986fc7134692
parentea0a4c610d8fa6dac3b4a6eadbc0ce5c18223845
package/libglib2: fix build with glibc >= 2.34

Fix the following build failure with glibc >= 2.34:

../glib/gspawn.c: In function 'safe_closefrom':
../glib/gspawn.c:1497:7: error: too few arguments to function 'close_range'
 1497 |   if (close_range (lowfd, G_MAXUINT) != 0 && errno == ENOSYS)
      |       ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/cbc0913fa2cc486deb64b07b5b13341a5a97025e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Tested-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libglib2/0004-correctly-use-3-parameters-for-close_range.patch [new file with mode: 0644]