#include <fcntl.h>
#include <cerrno>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include "lyxserver.h"
#include "lyx_main.h"
#include "debug.h"
#include "support/os2_errortable.h"
#endif
+
+using namespace lyx::support;
+
using std::endl;
// provide an empty mkfifo() if we do not have one. This disables the
if (fd < 0) {
lyxerr << "LyXComm: Could not open pipe " << filename << '\n'
<< strerror(errno) << endl;
- lyx::unlink(filename);
+ unlink(filename);
return -1;
}
// OS/2 pipes are deleted automatically
#ifndef __EMX__
- if (lyx::unlink(filename) < 0) {
+ if (unlink(filename) < 0) {
lyxerr << "LyXComm: Could not remove pipe " << filename
<< '\n' << strerror(errno) << endl;
};