From 5037bf99c02b04c1ac1326615f74395fc585ed65 Mon Sep 17 00:00:00 2001 From: John Vogel Date: Sat, 14 Dec 2024 00:46:32 -0500 Subject: local/uw-imap: new aport --- ...-client-2007f_p7-implicit-declaration-fix.patch | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch (limited to 'uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch') diff --git a/uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch b/uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch new file mode 100644 index 0000000..413ddbf --- /dev/null +++ b/uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch @@ -0,0 +1,46 @@ +This patch solves build issues with -Werror=implicit-function-declaration +enabled. + +- safe_flock is a function from flocklnx.c but header file for consumers + is missing, the simplest was to add function prototype to other + header file. +- utime.h is needed also in multiple places but os_slx.h header file is + used in all of them + +Bug: https://bugs.gentoo.org/870478 +--- a/src/osdep/unix/os_lnx.h ++++ b/src/osdep/unix/os_lnx.h +@@ -46,6 +46,7 @@ + #include + #include + #include /* for struct tm */ ++#include + #include + #include + #include +@@ -57,6 +58,7 @@ + + #define direct dirent + ++int safe_flock(int, int); + #define flock safe_flock + + +--- a/src/osdep/unix/os_slx.h ++++ b/src/osdep/unix/os_slx.h +@@ -46,6 +46,7 @@ + #include + #include + #include /* for struct tm */ ++#include + #include + #include + #include +@@ -57,6 +58,7 @@ + + #define direct dirent + ++int safe_flock(int, int); + #define flock safe_flock + + -- cgit v1.2.3