aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-11-29 22:51:31 -0800
committerKhem Raj <raj.khem@gmail.com>2022-11-30 09:46:47 -0800
commit4635b1c42752067cd516ea6ec6f955bed757157d (patch)
treef30e4f03600067a745b184d5f06f39ec32384877 /meta-networking/recipes-daemons
parentc7fcebd05d18c118eccbf6bc6c75ea91d0b89063 (diff)
downloadmeta-openembedded-4635b1c42752067cd516ea6ec6f955bed757157d.tar.gz
opensaf: Check for _FILE_OFFSET_BITS instead of __TIMESIZE
This is fixing both LFS as well as 64bit time_t issue in one go Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch
index 0e113f533f..d44ceb0d2e 100644
--- a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch
+++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch
@@ -15,15 +15,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
src/base/os_defs.c | 4 ++++
1 file changed, 4 insertions(+)
-diff --git a/src/base/os_defs.c b/src/base/os_defs.c
-index 83458c2..655c190 100644
--- a/src/base/os_defs.c
+++ b/src/base/os_defs.c
-@@ -917,7 +917,11 @@ uint32_t ncs_os_posix_shm(NCS_OS_POSIX_SHM_REQ_INFO *req)
+@@ -917,7 +917,11 @@ uint32_t ncs_os_posix_shm(NCS_OS_POSIX_S
((statsvfs.f_bfree - 1) * statsvfs.f_frsize)) {
syslog(
LOG_ERR,
-+#if __TIMESIZE == 64 && __WORDSIZE == 32
++#if _FILE_OFFSET_BITS == 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
@@ -31,6 +29,3 @@ index 83458c2..655c190 100644
"\n",
(statsvfs.f_bfree * statsvfs.f_frsize),
req->info.write.i_write_size);
---
-2.29.2
-