forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mblaze: fix compilation with musl 1.2.4
musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so just having _GNU_SOURCE defined is not enough anymore. Backport an upstream fix to replace these old data types. Signed-off-by: Tianling Shen <[email protected]>
- Loading branch information
1 parent
c2a3a95
commit 5312113
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
mail/mblaze/patches/010-mlist-use-fixed-width-integer-types-for-struct-linux_dire.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 1babebc12c3ea8d3395f00c9607e863866c190fc Mon Sep 17 00:00:00 2001 | ||
From: Michael Forney <[email protected]> | ||
Date: Wed, 7 Dec 2022 13:11:58 -0800 | ||
Subject: [PATCH] mlist: use fixed-width integer types for struct | ||
linux_dirent64 d_ino and d_off | ||
|
||
--- | ||
mlist.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
--- a/mlist.c | ||
+++ b/mlist.c | ||
@@ -111,8 +111,8 @@ list(char *prefix, char *file) | ||
#include <sys/syscall.h> | ||
|
||
struct linux_dirent64 { | ||
- ino64_t d_ino; /* 64-bit inode number */ | ||
- off64_t d_off; /* 64-bit offset to next structure */ | ||
+ uint64_t d_ino; /* 64-bit inode number */ | ||
+ int64_t d_off; /* 64-bit offset to next structure */ | ||
unsigned short d_reclen; /* Size of this dirent */ | ||
unsigned char d_type; /* File type */ | ||
char d_name[]; /* Filename (null-terminated) */ |