X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fsocktools.cpp;h=d4aab38f5fec0306766a8cca0394d48e5eb114e2;hb=ee9ff6cb0cd7d8b0ef3c18e5bd166e12580a3bf4;hp=2b73887d61b44152e723fe032c4603f09d276aef;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/support/socktools.cpp b/src/support/socktools.cpp index 2b73887d61..d4aab38f5f 100644 --- a/src/support/socktools.cpp +++ b/src/support/socktools.cpp @@ -39,6 +39,9 @@ int accept(int) #include "support/debug.h" +#ifdef HAVE_SYS_TYPES_H +# include +#endif #include #include #include @@ -48,6 +51,7 @@ int accept(int) #include #include +//needed for Mac OSX 10.5.2 Leopard #include using namespace std; @@ -78,7 +82,7 @@ int listen(FileName const & name, int queue) string::size_type len = localname.size(); // the field sun_path in sockaddr_un is a char[108] if (len > 107) { - LYXERR0("lyx: Socket address '" << name.absFilename() << "' too long."); + LYXERR0("lyx: Socket address '" << name.absFileName() << "' too long."); return -1; } // Synonims for AF_UNIX are AF_LOCAL and AF_FILE @@ -108,7 +112,7 @@ int listen(FileName const & name, int queue) // the socket special file in the filesystem. bind() returns -1 // in case of error if ((::bind (fd, reinterpret_cast(&addr), SUN_LEN(&addr))) == -1) { - LYXERR0("lyx: Could not bind address '" << name.absFilename() + LYXERR0("lyx: Could not bind address '" << name.absFileName() << "' to socket descriptor: " << strerror(errno)); ::close(fd); name.removeFile();