mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
opensaf: Fix the check for __fsblkcnt64_t size
The size on glibc depends on time_t size which is 64bit on newer architectures like rv32 while on musl it is indicated by _FILE_OFFSET_BITS therefore check for both Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
((statsvfs.f_bfree - 1) * statsvfs.f_frsize)) {
|
||||
syslog(
|
||||
LOG_ERR,
|
||||
+#if _FILE_OFFSET_BITS == 64 && __WORDSIZE == 32
|
||||
+#if (_FILE_OFFSET_BITS == 64 || __TIMESIZE == 64) && __WORDSIZE == 32
|
||||
+ "Insufficient shared memory (%lld) to write the data of size: %" PRId64
|
||||
+#else
|
||||
"Insufficient shared memory (%ld) to write the data of size: %" PRId64
|
||||
|
||||
Reference in New Issue
Block a user