diff options
author | Nick Hainke <vincent@systemli.org> | 2023-05-16 20:07:38 +0200 |
---|---|---|
committer | Nick Hainke <vincent@systemli.org> | 2023-05-16 22:54:29 +0200 |
commit | abec62a5426821c38ac287d21601b8eb237a1246 (patch) | |
tree | cf083ccba1e254d2aa7204479d005eaf80fd5da3 /target/linux/bcm4908 | |
parent | 466be0612aaed4034e15095b9fc63ce4cd99b87a (diff) | |
download | upstream-abec62a5426821c38ac287d21601b8eb237a1246.tar.gz upstream-abec62a5426821c38ac287d21601b8eb237a1246.tar.bz2 upstream-abec62a5426821c38ac287d21601b8eb237a1246.zip |
mdadm: fix compilation with musl 1.2.4
_LARGEFILE64_SOURCE has to be defined in the source, or CFLAGS can be used
to pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions.
Fixes error in the form of:
restripe.c: In function 'restore_stripes':
restripe.c:758:43: error: 'off64_t' undeclared (first use in this function); did you mean 'off_t'?
758 | (off64_t)read_offset) {
| ^~~~~~~
| off_t
restripe.c:758:43: note: each undeclared identifier is reported only once for each function it appears in
restripe.c:758:51: error: expected ')' before 'read_offset'
758 | (off64_t)read_offset) {
| ^~~~~~~~~~~
| )
restripe.c:757:36: note: to match this '('
757 | if (lseek64(source, read_offset, 0) !=
| ^
make[3]: *** [Makefile:193: restripe.o] Error 1
Fixes: fff878c5bcda ("toolchain/musl: update to 1.2.4")
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'target/linux/bcm4908')
0 files changed, 0 insertions, 0 deletions