postfix: Fix compile with glibc 2.34
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 9 Jan 2022 19:18:41 +0000 (19:18 +0000)
committerRosen Penev <rosenp@gmail.com>
Sun, 9 Jan 2022 23:25:13 +0000 (15:25 -0800)
commit99fc0216e0dde1d3a3db8d6da33cdddfac79fdd2
treeadb8f917a4c416eb26673294286f7902dd2ac5a8
parent8891db4a919c2a9692e3b6955f17caafc936ffd7
postfix: Fix compile with glibc 2.34

This adds a patch from Open embedded to fix compilation with glibc 2.34.
This patch was taken from here:
https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-daemons/postfix/files/0007-correct-signature-of-closefrom-API.patch

It fixes the following build problem:
/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-11.2.0_glibc/include/unistd.h:366:13: error: conflicting types for 'closefrom'; have 'void(int)'
  366 | extern void closefrom (int __lowfd) __THROW;
      |             ^~~~~~~~~
In file included from attr_clnt.c:87:
./sys_defs.h:1511:12: note: previous declaration of 'closefrom' with type 'int(int)'
 1511 | extern int closefrom(int);
      |            ^~~~~~~~~
make: *** [Makefile:192: attr_clnt.o] Error 1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
mail/postfix/Makefile
mail/postfix/patches/100-correct-signature-of-closefrom-API.patch [new file with mode: 0644]