Skip to content
Snippets Groups Projects
patch-ac 418 B
Change __sighandler_t into sig_t which is not platform dependant

diff --git a/include/rtslam/main.hpp b/include/rtslam/main.hpp
index 51cee4b..a9d9897 100644
--- include/rtslam/main.hpp
+++ include/rtslam/main.hpp
@@ -1435,7 +1435,7 @@ void demo_slam_stop(world_ptr_t *world)
 }
 
 
-void set_signals(__sighandler_t catcher)
+void set_signals(sig_t catcher)
 {
 	signal(SIGQUIT, catcher);
 	signal(SIGTERM, catcher);