summaryrefslogtreecommitdiff
path: root/user/libimobiledevice/modern-libplist.patch
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2023-11-25 06:28:28 -0800
committerA. Wilcox <awilcox@wilcox-tech.com>2023-11-27 09:59:05 +0000
commit0c53fdf1316ff609f0ad9ec44b267d126543b603 (patch)
tree9982e9086f473592e8511bf078bde9586f5f1e3c /user/libimobiledevice/modern-libplist.patch
parentc95021c4a17104e77b604ed82bc4ed3ef3335182 (diff)
downloadpackages-0c53fdf1316ff609f0ad9ec44b267d126543b603.tar.gz
packages-0c53fdf1316ff609f0ad9ec44b267d126543b603.tar.bz2
packages-0c53fdf1316ff609f0ad9ec44b267d126543b603.tar.xz
packages-0c53fdf1316ff609f0ad9ec44b267d126543b603.zip
user/libimobiledevice: new package
Diffstat (limited to 'user/libimobiledevice/modern-libplist.patch')
-rw-r--r--user/libimobiledevice/modern-libplist.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/libimobiledevice/modern-libplist.patch b/user/libimobiledevice/modern-libplist.patch
new file mode 100644
index 000000000..eac8a774d
--- /dev/null
+++ b/user/libimobiledevice/modern-libplist.patch
@@ -0,0 +1,34 @@
+Patch-Source: https://github.com/archlinux/svntogit-packages/blob/2f17c7d5c91d164453ea71c28adea93499016af2/trunk/libplist-2.3.0.diff
+--
+diff --git i/common/utils.c w/common/utils.c
+index 7f66ec2..7ebe997 100644
+--- i/common/utils.c
++++ w/common/utils.c
+@@ -314,7 +314,7 @@ int plist_read_from_filename(plist_t *plist, const char *filename)
+ return 1;
+ }
+
+-int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format)
++int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format)
+ {
+ char *buffer = NULL;
+ uint32_t length;
+diff --git i/common/utils.h w/common/utils.h
+index 2c3acec..4faa5bd 100644
+--- i/common/utils.h
++++ w/common/utils.h
+@@ -51,13 +51,8 @@ char *generate_uuid(void);
+ void buffer_read_from_filename(const char *filename, char **buffer, uint64_t *length);
+ void buffer_write_to_filename(const char *filename, const char *buffer, uint64_t length);
+
+-enum plist_format_t {
+- PLIST_FORMAT_XML,
+- PLIST_FORMAT_BINARY
+-};
+-
+ int plist_read_from_filename(plist_t *plist, const char *filename);
+-int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format);
++int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format);
+
+ void plist_print_to_stream(plist_t plist, FILE* stream);
+