]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #763 in SNORT/snort3 from fix-osx to master
authorHui Cao (huica) <huica@cisco.com>
Thu, 5 Jan 2017 13:55:00 +0000 (08:55 -0500)
committerHui Cao (huica) <huica@cisco.com>
Thu, 5 Jan 2017 13:55:00 +0000 (08:55 -0500)
Squashed commit of the following:

commit 1cf8d99a6467a6c5f446ffa5953fca9ecfa45d2b
Author: Victor Roemer <viroemer@cisco.com>
Date:   Wed Jan 4 13:55:48 2017 -0500

    alert_sf_socket is not supported on OSX

src/loggers/loggers.cc

index 88532879ecdb8885105403a990d8d353d60e1297..e3a9e7d259d80f5bc0dfb0e163f848245ce1b5df 100644 (file)
 
 // to ensure PacketManager::log_protocols() is built into Snort++
 extern const BaseApi* log_codecs[];
+
+#ifdef __linux__
 extern const BaseApi* alert_sf_socket[];
+#endif
 
 #ifdef STATIC_LOGGERS
 extern const BaseApi* alert_csv[];
@@ -44,7 +47,9 @@ void load_loggers()
 {
     // loggers
     PluginManager::load_plugins(log_codecs);
+#ifdef __linux__
     PluginManager::load_plugins(alert_sf_socket);
+#endif
 
 #ifdef STATIC_LOGGERS
     // alerters