]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.cpp
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / ServerSocket.cpp
index fb6e3bf75c6abe24c62e7c7b05ad683041b6df74..fd903ce18fa4f69898da1516ae4d2acb5b2b2602 100644 (file)
 #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 <boost/assert.hpp>
 
 #include <cerrno>
+#include <cstring>
 #include <ostream>
 
 #if defined (_WIN32)
 # include <io.h>
 #endif
 
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
 using namespace std;
 using namespace lyx::support;
 
@@ -110,8 +116,7 @@ void ServerSocket::serverCallback()
        }
 
        // Register the new client.
-       clients[client_fd] =
-               shared_ptr<LyXDataSocket>(new LyXDataSocket(client_fd));
+       clients[client_fd] = make_shared<LyXDataSocket>(client_fd);
        theApp()->registerSocketCallback(
                client_fd,
                bind(&ServerSocket::dataCallback,