X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServerSocket.cpp;h=3544235bba0340fd1e3e07b200d4195c1e5b9d82;hb=fbc64ea7ee115bdc4a55c214f28de2166d71f6a2;hp=fb6e3bf75c6abe24c62e7c7b05ad683041b6df74;hpb=b6aed54c45cf4a479cfd11e3e6851194f5a05947;p=lyx.git diff --git a/src/ServerSocket.cpp b/src/ServerSocket.cpp index fb6e3bf75c..3544235bba 100644 --- a/src/ServerSocket.cpp +++ b/src/ServerSocket.cpp @@ -18,7 +18,6 @@ #include "DispatchResult.h" #include "FuncRequest.h" -#include "LyX.h" #include "LyXAction.h" #include "frontends/Application.h" @@ -26,17 +25,23 @@ #include "support/debug.h" #include "support/environment.h" #include "support/FileName.h" +#include "support/lassert.h" #include "support/socktools.h" -#include "support/bind.h" +#include #include +#include #include #if defined (_WIN32) # include #endif +#ifdef HAVE_UNISTD_H +# include +#endif + using namespace std; using namespace lyx::support; @@ -110,8 +115,7 @@ void ServerSocket::serverCallback() } // Register the new client. - clients[client_fd] = - shared_ptr(new LyXDataSocket(client_fd)); + clients[client_fd] = make_shared(client_fd); theApp()->registerSocketCallback( client_fd, bind(&ServerSocket::dataCallback,