summaryrefslogtreecommitdiff
path: root/uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch
diff options
context:
space:
mode:
authorJohn Vogel <jvogel@stygian.me>2024-12-14 00:46:32 -0500
committerJohn Vogel <jvogel@stygian.me>2024-12-14 00:46:32 -0500
commit5037bf99c02b04c1ac1326615f74395fc585ed65 (patch)
tree7275167ef414d3026f591c33e1a9db68cc1a94ef /uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch
parentc0b3c407f2c3eaf0852191db7125761cfbe49bed (diff)
downloadmy-aports-5037bf99c02b04c1ac1326615f74395fc585ed65.tar.gz
local/uw-imap: new aport
Diffstat (limited to 'uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch')
-rw-r--r--uw-imap/c-client-2007f_p7-implicit-declaration-fix.patch46
1 files changed, 46 insertions, 0 deletions
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 <sys/types.h>
+ #include <dirent.h>
+ #include <time.h> /* for struct tm */
++#include <utime.h>
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <sys/file.h>
+@@ -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 <sys/types.h>
+ #include <dirent.h>
+ #include <time.h> /* for struct tm */
++#include <utime.h>
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <sys/file.h>
+@@ -57,6 +58,7 @@
+
+ #define direct dirent
+
++int safe_flock(int, int);
+ #define flock safe_flock
+
+