diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index 9798305ab0a..020474f0eaf 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -669,7 +669,7 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs) char buf_time[128]; time(&raw_time); - timep = localtime_r(&raw_time, &result); + timep = os_localtime(&raw_time, &result); strftime(buf_time, sizeof(buf_time), "%Y.%m.%d_%H.%M.%S", timep); snprintf(dump_dir, sizeof(dump_dir), "%s/"RADV_DUMP_DIR"_%d_%s", diff --git a/src/amd/vulkan/radv_rgp.c b/src/amd/vulkan/radv_rgp.c index efcf2ae0fe4..1f889ed258b 100644 --- a/src/amd/vulkan/radv_rgp.c +++ b/src/amd/vulkan/radv_rgp.c @@ -132,7 +132,7 @@ radv_sqtt_fill_header(struct sqtt_file_header *header) header->chunk_offset = sizeof(*header); time(&raw_time); - timep = localtime_r(&raw_time, &result); + timep = os_localtime(&raw_time, &result); header->second = timep->tm_sec; header->minute = timep->tm_min;