!1 rv64g架构 编译报错 libc6-dev 升级2.36后 closefrom函数报错

Merge pull request !1 from 景雅茹/openkylin/yangtze
This commit is contained in:
周淦清 2024-03-18 08:25:15 +00:00 committed by Gitee
commit 3f174e149a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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.cn> Mon, 18 Mar 2024 07:50:30 +0000
gpgme1.0 (1.13.1-ok1) yangtze; urgency=medium
* 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)
fd = fd_list[i].fd;
fd++;
#if defined(__sun) || defined(__FreeBSD__)
#if defined(__sun) || defined(__FreeBSD__) || defined(__GLIBC__)
closefrom (fd);
max_fds = fd;
#else /*!__sun */