X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Funix%2Fsystemerror.cpp;fp=source%2Fcore%2Funix%2Fsystemerror.cpp;h=a8eb5a6a05778b8868ad9ab9fedecd907ca10c07;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hp=0000000000000000000000000000000000000000;hpb=b4806214e905752617691f851717033fd3f266c2;p=libs%2Fcore.git diff --git a/source/core/unix/systemerror.cpp b/source/core/unix/systemerror.cpp new file mode 100644 index 0000000..a8eb5a6 --- /dev/null +++ b/source/core/unix/systemerror.cpp @@ -0,0 +1,17 @@ +#include +#include +#include "systemerror.h" + +using namespace std; + +namespace Msp { + +string system_error::get_message(int c) +{ + if(c==-1) + c = errno; + + return strerror(c); +} + +} // namespace Msp