gentoo-ebuilds/net-fs/wdfs/files/wdfs-1.4.2-gcc15.patch
Alexey Sokolov b4bb0742c7
net-fs/wdfs: fix build with gcc 15
Closes: https://bugs.gentoo.org/943933
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/41706
Closes: https://github.com/gentoo/gentoo/pull/41706
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-24 19:11:23 +01:00

40 lines
992 B
Diff

https://bugs.gentoo.org/943933
--- a/src/wdfs-main.c
+++ b/src/wdfs-main.c
@@ -1227,7 +1227,7 @@ static int wdfs_statfs(const char *localpath, struct statvfs *buf)
/* author jens, 04.08.2005 17:41:12, location: goettingen
* this method is called, when the filesystems is unmounted. time to clean up! */
-static void wdfs_destroy()
+static void wdfs_destroy(void* a)
{
if (wdfs.debug == true)
fprintf(stderr, ">> freeing globaly used memory\n");
--- a/src/wdfs-main.h
+++ b/src/wdfs-main.h
@@ -29,10 +29,8 @@
esac
*/
-typedef enum {
- true = 1,
- false = 0
-} bool_t;
+#include <stdbool.h>
+typedef bool bool_t;
/* used as mode for unify_path() */
enum {
--- a/src/webdav.h
+++ b/src/webdav.h
@@ -3,7 +3,8 @@
extern ne_session *session;
-int setup_webdav_session();
+int setup_webdav_session(
+ const char *uri_string, const char *username, const char *password);
int lockfile(const char *remotepath, const int timeout);
int unlockfile(const char *remotepath);