src/posix-io.c:573: add the judgement of GLIBC

This commit is contained in:
景雅茹 2024-03-18 08:17:14 +00:00
parent 1f0359fd1d
commit 1a39015d1a
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
gpgme1.0 (1.13.1-ok2) yangtze; urgency=medium
* src/posix-io.c:573: add the judgement of GLIBC
-- root <jingyaru@smart-core> Mon, 18 Mar 2024 07:50:30 +0000
gpgme1.0 (1.13.1-ok1) yangtze; urgency=medium gpgme1.0 (1.13.1-ok1) yangtze; urgency=medium
* Build for openKylin. * Build for openKylin.

View File

@ -570,7 +570,7 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
if (fd_list[i].fd > fd) if (fd_list[i].fd > fd)
fd = fd_list[i].fd; fd = fd_list[i].fd;
fd++; fd++;
#if defined(__sun) || defined(__FreeBSD__) #if defined(__sun) || defined(__FreeBSD__) || defined(__GLIBC__)
closefrom (fd); closefrom (fd);
max_fds = fd; max_fds = fd;
#else /*!__sun */ #else /*!__sun */