mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 09:40:18 +04:00
hfsprogs: fix compile with newer musl
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
30
utils/hfsprogs/patches/020-cdefs.patch
Normal file
30
utils/hfsprogs/patches/020-cdefs.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
--- a/fsck_hfs.tproj/fsck_hfs.h
|
||||
+++ b/fsck_hfs.tproj/fsck_hfs.h
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "cache.h"
|
||||
|
||||
+#include <sys/cdefs.h>
|
||||
|
||||
const extern char *cdevname; /* name of device being checked */
|
||||
extern char *progname;
|
||||
--- a/newfs_hfs.tproj/makehfs.c
|
||||
+++ b/newfs_hfs.tproj/makehfs.c
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
*/
|
||||
|
||||
+#include <sys/cdefs.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
--- a/newfs_hfs.tproj/newfs_hfs.c
|
||||
+++ b/newfs_hfs.tproj/newfs_hfs.c
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <syslog.h>
|
||||
#include <unistd.h>
|
||||
|
||||
+#include <sys/cdefs.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/param.h>
|
||||
Reference in New Issue
Block a user