diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-10-01 20:54:53 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-10-01 20:54:53 +0100 |
commit | 391b5b359a346aff490103da7dddc85047f83830 (patch) | |
tree | 29eea460a0bd7e1ff21d43b9d6df9af4d8a175e1 /sys-fs/mtpfs/files | |
parent | c719fdcee603a5a706a45d10cb598762d56a727d (diff) |
gentoo resync : 01.10.2021
Diffstat (limited to 'sys-fs/mtpfs/files')
-rw-r--r-- | sys-fs/mtpfs/files/mtpfs-1.1-deprecated_lock_init.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-fs/mtpfs/files/mtpfs-1.1-deprecated_lock_init.patch b/sys-fs/mtpfs/files/mtpfs-1.1-deprecated_lock_init.patch new file mode 100644 index 000000000000..d369ebfe1f2a --- /dev/null +++ b/sys-fs/mtpfs/files/mtpfs-1.1-deprecated_lock_init.patch @@ -0,0 +1,24 @@ +diff -Naur mtpfs-1.1.orig/mtpfs.c mtpfs-1.1/mtpfs.c +--- mtpfs-1.1.orig/mtpfs.c 2021-10-01 00:15:15.763423589 +0200 ++++ mtpfs-1.1/mtpfs.c 2021-10-01 00:16:07.626486888 +0200 +@@ -1371,6 +1371,8 @@ + extern int optind; + extern char *optarg; + ++ g_mutex_init(&device_lock); ++ + //while ((opt = getopt(argc, argv, "d")) != -1 ) { + //switch (opt) { + //case 'd': +diff -Naur mtpfs-1.1.orig/mtpfs.h mtpfs-1.1/mtpfs.h +--- mtpfs-1.1.orig/mtpfs.h 2021-10-01 00:15:15.779423609 +0200 ++++ mtpfs-1.1/mtpfs.h 2021-10-01 00:16:20.322502337 +0200 +@@ -77,7 +77,7 @@ + static GSList *myfiles = NULL; + static LIBMTP_playlist_t *playlists = NULL; + static gboolean playlists_changed = FALSE; +-static GMutex device_lock = G_STATIC_MUTEX_INIT; ++static GMutex device_lock; + + + #endif /* _MTPFS_H_ */ |