gpgme: Fix compile with glibc 2.34
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 9 Jan 2022 18:45:49 +0000 (18:45 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 13 Oct 2022 19:27:03 +0000 (20:27 +0100)
commita471198392181e878dec0f1332da0742eb61deec
treee0fef05af53a075305c51cf85ad8a3f0fb0a3abc
parent120bd98229a367505b616751dff7d63cd99fe8dd
gpgme: Fix compile with glibc 2.34

This backports a patch from upstream gpgme to fix compilation with glibc 2.34.

It fixes the following build problem:
posix-io.c: In function '_gpgme_io_spawn':
posix-io.c:577:23: error: void value not ignored as it ought to be
  577 |             while ((i = closefrom (fd)) && errno == EINTR)
      |                       ^
make[5]: *** [Makefile:947: posix-io.lo] Error 1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit dafb96c14837bf133e5215cf65fc7ed1439a375a)
libs/gpgme/Makefile
libs/gpgme/patches/001-Support-closefrom-also-for-glibc.patch [new file with mode: 0644]