From 9cb7dcc4220acf1f46888a41e33dcc7422bc1c1a Mon Sep 17 00:00:00 2001 From: Amir Poolad Date: Thu, 16 Oct 2025 16:17:34 -0400 Subject: [PATCH] Add needed includes to vpr_signal_handler vpr_signal_handler.cpp used some header files that were indirectly included. This commit directly adds those header files to vpr_signal_handler --- vpr/src/base/vpr_signal_handler.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/vpr/src/base/vpr_signal_handler.cpp b/vpr/src/base/vpr_signal_handler.cpp index e528df66ec..4f291d600a 100644 --- a/vpr/src/base/vpr_signal_handler.cpp +++ b/vpr/src/base/vpr_signal_handler.cpp @@ -9,18 +9,20 @@ * - SIGHUP : log, attempt to checkpoint, continue running * - SIGTERM : log, attempt to checkpoint, then exit with INTERRUPTED_EXIT_CODE */ -#include "vtr_log.h" #include "vtr_time.h" #include "vpr_signal_handler.h" -#include "vpr_exit_codes.h" -#include "vpr_error.h" #include "globals.h" #include "read_place.h" #include "read_route.h" -#include "route_export.h" -#include + +// Currenly safe_write uses the POSIX write system call. This could be extended to other platforms in the future. +#if defined(__unix__) +#include "unistd.h" +#endif + +#include "string.h" #ifdef VPR_USE_SIGACTION #include