]> git.stg.codes - stg.git/blobdiff - stglibs/pinger.lib/include/stg/pinger.h
Update ChangeLog.
[stg.git] / stglibs / pinger.lib / include / stg / pinger.h
index b25f68472235640cbedc72e596cbe4bebb61b789..f31cc270ccb0e1ad48a4bd032d84ebeda5eb278b 100644 (file)
@@ -18,7 +18,7 @@
 #include <netinet/ip_icmp.h>
 #endif
 
 #include <netinet/ip_icmp.h>
 #endif
 
-#if defined (FREE_BSD) || defined (FREE_BSD5)
+#if defined (FREE_BSD) || defined (FREE_BSD5) || defined(DARWIN)
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
@@ -87,7 +87,7 @@ public:
     typedef std::multimap<uint32_t, time_t> PingIPs;
     typedef PingIPs::size_type SizeType;
 
     typedef std::multimap<uint32_t, time_t> PingIPs;
     typedef PingIPs::size_type SizeType;
 
-            STG_PINGER(time_t delay = 15);
+            explicit STG_PINGER(time_t delay = 15);
             ~STG_PINGER();
 
     int     Start();
             ~STG_PINGER();
 
     int     Start();