Skip to content

Commit 9cb7dcc

Browse files
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
1 parent 74d6c84 commit 9cb7dcc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

vpr/src/base/vpr_signal_handler.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@
99
* - SIGHUP : log, attempt to checkpoint, continue running
1010
* - SIGTERM : log, attempt to checkpoint, then exit with INTERRUPTED_EXIT_CODE
1111
*/
12-
#include "vtr_log.h"
1312
#include "vtr_time.h"
1413

1514
#include "vpr_signal_handler.h"
16-
#include "vpr_exit_codes.h"
17-
#include "vpr_error.h"
1815
#include "globals.h"
1916

2017
#include "read_place.h"
2118
#include "read_route.h"
22-
#include "route_export.h"
23-
#include <atomic>
19+
20+
// Currenly safe_write uses the POSIX write system call. This could be extended to other platforms in the future.
21+
#if defined(__unix__)
22+
#include "unistd.h"
23+
#endif
24+
25+
#include "string.h"
2426

2527
#ifdef VPR_USE_SIGACTION
2628
#include <csignal>

0 commit comments

Comments
 (0)