Fix Boost system_error include path
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 27 Dec 2025 16:23:02 +0000 (17:23 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 27 Dec 2025 16:24:50 +0000 (17:24 +0100)
Use <boost/system.hpp> instead of <boost/system/system_error.hpp>
for newer Boost versions.

src/host/pingerfactory.cpp

index 75d43ed..f466172 100644 (file)
@@ -25,7 +25,7 @@
 #include <iostream>
 
 #include <boost/asio/ip/tcp_raw_protocol.hpp>
-#include <boost/system/system_error.hpp>
+#include <boost/system.hpp>
 
 #include <logfunc.hpp>
 
@@ -113,7 +113,7 @@ PingerItem PingerFactory::createPinger(
             return PingerItem();                                                                                                             //lint !e527
         }
     }
-    catch ( const system_error &ex )
+    catch ( const boost::system::system_error &ex )
     {
         // Raw sockets are locked down by Unix operating systems to prevent
         // malware and security holes, thus it requires root access to use it.
@@ -124,4 +124,3 @@ PingerItem PingerFactory::createPinger(
 
     return PingerItem();                                                                                                                        //lint !e527
 }
-