summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/log.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/log.cpp b/src/log.cpp
index ba1610fd..435b2da0 100644
--- a/src/log.cpp
+++ b/src/log.cpp
@@ -30,6 +30,8 @@
#include <windows.h>
#elif __APPLE__
#include <Carbon/Carbon.h>
+#elif __linux__ || __linux
+#include <stdlib.h>
#endif
#include <sys/time.h>
@@ -123,6 +125,10 @@ void Logger::error(const std::string &error_text)
StandardAlert(kAlertStopAlert,
"\pError",
(ConstStr255Param) msg, NULL, NULL);
+#elif defined __linux__ || __linux
+ std::cerr << "Error: " << error_text << std::endl;
+ std::string msg="xmessage \"" + error_text + "\"";
+ system(msg.c_str());
#else
std::cerr << "Error: " << error_text << std::endl;
#endif