* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / security / gpgme / hotfix-closefrom.patch
blobf0c2e272903f9473034ee9a98b6fca5f132fb3d7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/gpgme/hotfix-closefrom.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- gpgme-1.16.0/src/posix-io.c.vanilla 2021-10-27 14:11:35.607985639 +0200
15 +++ gpgme-1.16.0/src/posix-io.c 2021-10-27 14:12:10.086988098 +0200
16 @@ -570,7 +570,7 @@
17 if (fd_list[i].fd > fd)
18 fd = fd_list[i].fd;
19 fd++;
20 -#if defined(__sun) || defined(__FreeBSD__)
21 +#if 1
22 closefrom (fd);
23 max_fds = fd;
24 #else /*!__sun */