summaryrefslogtreecommitdiff
path: root/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-musl.patch
blob: 7e7c3d1d310e45102c8f889a90a28e12c34a6ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Port to musl.

Patch-by: ernsteiswuerfel
Bug: https://bugs.gentoo.org/715862
--- a/fsck_hfs.tproj/dfalib/CatalogCheck.c
+++ b/fsck_hfs.tproj/dfalib/CatalogCheck.c
@@ -23,6 +23,7 @@
 #include "Scavenger.h"
 #include "DecompDataEnums.h"
 #include "DecompData.h"
+#include <sys/types.h>
 
 /*
  * information collected when visiting catalog records
--- a/fsck_hfs.tproj/dfalib/SRepair.c
+++ b/fsck_hfs.tproj/dfalib/SRepair.c
@@ -35,6 +35,7 @@
 #include "Scavenger.h"
 #include <unistd.h>
 #include <sys/stat.h>
+#include <sys/types.h>
 #include <stdlib.h>
 #include "../cache.h"
 
--- a/fsck_hfs.tproj/dfalib/Scavenger.h
+++ b/fsck_hfs.tproj/dfalib/Scavenger.h
@@ -44,7 +44,7 @@
 #include <sys/kauth.h>
 #include <sys/syslimits.h>
 #endif
-#include <sys/errno.h>
+#include <errno.h>
 
 #ifdef __cplusplus
 extern	"C" {
--- a/fsck_hfs.tproj/fsck_hfs.h
+++ b/fsck_hfs.tproj/fsck_hfs.h
@@ -24,6 +24,9 @@
 
 #include "cache.h"
 
+#ifndef __P
+#define __P(args)       args
+#endif
 
 const extern char	*cdevname;		/* name of device being checked */
 extern char	*progname;
--- a/newfs_hfs.tproj/makehfs.c
+++ b/newfs_hfs.tproj/makehfs.c
@@ -35,7 +35,6 @@
 #include <time.h>
 #include "missing.h"
 #endif
-#include <sys/errno.h>
 #include <sys/stat.h>
 #if !LINUX
 #include <sys/sysctl.h>
@@ -69,6 +68,9 @@ extern Boolean _CFStringGetFileSystemRepresentation(CFStringRef string, UInt8 *b
 #include "newfs_hfs.h"
 #include "readme.h"
 
+#ifndef __P
+#define __P(args)       args
+#endif
 
 #define HFS_BOOT_DATA	"/usr/share/hfsprogs/hfsbootdata"
 
--- a/newfs_hfs.tproj/newfs_hfs.c
+++ b/newfs_hfs.tproj/newfs_hfs.c
@@ -54,6 +54,9 @@
 #else
 #include <varargs.h>
 #endif
+#ifndef __P
+#define __P(args)       args
+#endif
 
 #define	NOVAL       (-1)
 #define UMASK       (0755)