Fix SunOS build
All checks were successful
CMake / ubuntu-latest - shared=OFF, posix=ON (push) Successful in 13s
CMake / ubuntu-latest - shared=ON, posix=ON (push) Successful in 15s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-08-09 08:49:32 +03:00
parent 0fb0160b5e
commit 0bb85e6364

View File

@@ -1615,7 +1615,11 @@ static bool ser_value(dcfg_Value *v, StrBld *sb)
return sb_put(sb, v->v.b ? "true" : "false", v->v.b ? 4 : 5);
case dcfg_ValueType_Integer: {
char tmp[64];
#ifdef __sun
int n = snprintf(tmp, sizeof tmp, "%ld", v->v.i);
#else
int n = snprintf(tmp, sizeof tmp, "%" PRId64, v->v.i);
#endif
return sb_put(sb, tmp, (size_t)n);
}
case dcfg_ValueType_Real: {