aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hfsprogs/musl-compat.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-09-23 20:12:54 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-09-23 20:24:38 +0200
commit2adeba433d4de964a51ba73fad56b32397569462 (patch)
treec470dbddc0e5bcd8800ff8d1c728d879654a4b56 /testing/hfsprogs/musl-compat.patch
parentb8a78f4ff716fe4aa2cc0dd69e1a6f2e90b6d5d5 (diff)
downloadaports-2adeba433d4de964a51ba73fad56b32397569462.tar.bz2
aports-2adeba433d4de964a51ba73fad56b32397569462.tar.xz
testing/hfsprogs
Tools to create/check Apple HFS+ filesystems https://src.fedoraproject.org/rpms/hfsplus-tools About the package name: * diskdev_cmds: upstream, Gentoo, OpenSUSE * hfsprogs: Arch Linux, Debian, NixOS, VoidLinux * hfsplus-tools: Fedora diskdev_cmds is really bad name, so I choose more popular and descriptive name: hfsprogs.
Diffstat (limited to 'testing/hfsprogs/musl-compat.patch')
-rw-r--r--testing/hfsprogs/musl-compat.patch136
1 files changed, 136 insertions, 0 deletions
diff --git a/testing/hfsprogs/musl-compat.patch b/testing/hfsprogs/musl-compat.patch
new file mode 100644
index 0000000000..345bd24d69
--- /dev/null
+++ b/testing/hfsprogs/musl-compat.patch
@@ -0,0 +1,136 @@
+--- diskdev_cmds-540.1.linux3.orig/fsck_hfs.tproj/dfalib/Scavenger.h
++++ diskdev_cmds-540.1.linux3/fsck_hfs.tproj/dfalib/Scavenger.h
+@@ -48,7 +48,6 @@
+ #endif
+ #include <sys/errno.h>
+ #include <sys/param.h>
+-#include <sys/sysctl.h>
+ #include <sys/mount.h>
+ #include <hfs/hfs_mount.h>
+
+--- diskdev_cmds-540.1.linux3.orig/fsck_hfs.tproj/fsck_hfs.c
++++ diskdev_cmds-540.1.linux3/fsck_hfs.tproj/fsck_hfs.c
+@@ -30,7 +30,6 @@
+ #include <sys/ioctl.h>
+ #if !LINUX
+ #include <sys/disk.h>
+-#include <sys/sysctl.h>
+ #include <setjmp.h>
+ #endif
+ #include <hfs/hfs_mount.h>
+--- diskdev_cmds-540.1.linux3.orig/newfs_hfs.tproj/makehfs.c
++++ diskdev_cmds-540.1.linux3/newfs_hfs.tproj/makehfs.c
+@@ -38,7 +38,6 @@
+ #endif
+ #include <sys/errno.h>
+ #include <sys/stat.h>
+-#include <sys/sysctl.h>
+ #if !LINUX
+ #include <sys/vmmeter.h>
+ #endif
+--- a/fsck_hfs.tproj/utilities.c
++++ b/fsck_hfs.tproj/utilities.c
+@@ -70,7 +70,6 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+-#include <sys/sysctl.h>
+
+ #include "fsck_hfs.h"
+
+--- diskdev_cmds-540.1.linux3.orig/fsck_hfs.tproj/dfalib/Scavenger.h
++++ diskdev_cmds-540.1.linux3/fsck_hfs.tproj/dfalib/Scavenger.h
+@@ -46,7 +46,7 @@
+ #include <sys/kauth.h>
+ #include <sys/syslimits.h>
+ #endif
+-#include <sys/errno.h>
++#include <errno.h>
+ #include <sys/param.h>
+ #include <sys/mount.h>
+ #include <hfs/hfs_mount.h>
+--- diskdev_cmds-540.1.linux3.orig/fsck_hfs.tproj/utilities.c
++++ diskdev_cmds-540.1.linux3/fsck_hfs.tproj/utilities.c
+@@ -55,7 +55,7 @@
+ #include <stddef.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#include <sys/errno.h>
++#include <errno.h>
+ #if LINUX
+ #include <limits.h>
+ #include <signal.h>
+--- diskdev_cmds-540.1.linux3.orig/newfs_hfs.tproj/makehfs.c
++++ diskdev_cmds-540.1.linux3/newfs_hfs.tproj/makehfs.c
+@@ -36,7 +36,7 @@
+ #include <time.h>
+ #include "missing.h"
+ #endif
+-#include <sys/errno.h>
++#include <errno.h>
+ #include <sys/stat.h>
+ #if !LINUX
+ #include <sys/vmmeter.h>
+--- a/fsck_hfs.tproj/cache.h
++++ b/fsck_hfs.tproj/cache.h
+@@ -29,6 +29,7 @@
+ #ifndef _CACHE_H_
+ #define _CACHE_H_
+ #include <stdint.h>
++#include <sys/types.h>
+
+ /* Different values for initializing cache */
+ enum {
+--- a/newfs_hfs.tproj/makehfs.c
++++ b/newfs_hfs.tproj/makehfs.c
+@@ -41,6 +41,7 @@
+ #if !LINUX
+ #include <sys/vmmeter.h>
+ #endif
++#include <sys/cdefs.h>
+
+ #include <err.h>
+ #include <errno.h>
+--- a/newfs_hfs.tproj/newfs_hfs.c
++++ b/newfs_hfs.tproj/newfs_hfs.c
+@@ -42,6 +42,7 @@
+ #if LINUX
+ #include <time.h>
+ #endif
++#include <sys/cdefs.h>
+
+ #if !LINUX
+ #include <IOKit/storage/IOMediaBSDClient.h>
+--- a/fsck_hfs.tproj/fsck_hfs.h
++++ b/fsck_hfs.tproj/fsck_hfs.h
+@@ -22,6 +22,7 @@
+ */
+
+ #include "cache.h"
++#include <sys/cdefs.h>
+
+
+ const extern char *cdevname; /* name of device being checked */
+--- a/fsck_hfs.tproj/utilities.c
++++ b/fsck_hfs.tproj/utilities.c
+@@ -785,7 +785,7 @@
+
+ if (!live_fsck) {
+ /* copy va_list as it will be used again later */
+- __va_copy(ap_stdout, ap);
++ va_copy(ap_stdout, ap);
+ vfprintf(stdout, fmt, ap_stdout);
+ }
+
+--- a/fsck_hfs.tproj/fsck_messages.c
++++ b/fsck_hfs.tproj/fsck_messages.c
+@@ -85,7 +85,7 @@
+
+ if (c == NULL)
+ return;
+- __va_copy(ap2, ap); // Just in case we need it
++ va_copy(ap2, ap); // Just in case we need it
+ length = vsnprintf(buf, BUFSIZ, fmt, ap);
+ if (length > BUFSIZ) {
+ // We need to allocate space for it
+