diff options
Diffstat (limited to 'net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch')
-rw-r--r-- | net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch b/net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch new file mode 100644 index 000000000000..74e223d0f86c --- /dev/null +++ b/net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch @@ -0,0 +1,34 @@ +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 + +diff --git a/src/osdep/unix/os_slx.h b/src/osdep/unix/os_slx.h +index b5f39ff..adad223 100644 +--- 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 + + +-- +2.35.1 + |