]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/httpd.cxx
properly add librt when clock_gettime is used
[flightgear.git] / src / Network / httpd.cxx
index e2e6a918f5326eb52b18536a0cd4d50ca158e303..f301f552d5b2c6ebad9b639903a3621c261271f5 100644 (file)
@@ -32,8 +32,8 @@
 #include <simgear/compiler.h>
 
 #include <algorithm>           // sort()
-#include <stdlib.h>            // atoi() atof()
-
+#include <cstdlib>             // atoi() atof()
+#include <cstring>
 #include <string>
 
 #include <simgear/debug/logstream.hxx>
@@ -147,7 +147,7 @@ void HttpdChannel::foundTerminator (void) {
                             if ( !globals->get_commands()
                                  ->execute(urlDecode(b).c_str(), &args) )
                             {
-                                SG_LOG( SG_GENERAL, SG_ALERT,
+                                SG_LOG( SG_NETWORK, SG_ALERT,
                                         "Command " << urlDecode(b)
                                         << " failed.");
                             }