Use HAVE_UNISTD_H.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9503 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-01-19 15:26:41 +00:00
parent c9f9ba315c
commit bb350c0cba
12 changed files with 35 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* buffer.C (readHeader): use "&&" rather than "and".
* lyxserver.h (inPipeName, outPipeName): make these const.
2005-01-19 Angus Leeming <leeming@lyx.org>
* lyx_main.C (error_handler, init): protect SIGHUP with

View File

@ -417,7 +417,7 @@ int Buffer::readHeader(LyXLex & lex)
string unknown = params().readToken(lex, token);
if (!unknown.empty()) {
if (unknown[0] != '\\' and token == "\\textclass") {
if (unknown[0] != '\\' && token == "\\textclass") {
unknownClass(unknown);
} else {
++unknown_tokens;

View File

@ -1,3 +1,7 @@
2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* client.C: use the HAVE_UNISTD_H preprocessor guard.
2005-01-10 Angus Leeming <leeming@lyx.org>
* messages.C: use support/package.h to provide the paths to the

View File

@ -21,7 +21,9 @@
// getpid(), getppid()
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
// select()
#include <sys/select.h>

View File

@ -1,3 +1,6 @@
2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* LyXView.C: use the HAVE_UNISTD_H preprocessor guard.
2005-01-10 André Pönitz <poenitz@gmx.net>

View File

@ -40,7 +40,9 @@
#include <boost/bind.hpp>
#include <sys/time.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
using lyx::support::MakeDisplayPath;
using lyx::support::OnlyFilename;

View File

@ -58,13 +58,13 @@ public:
private:
/// the filename of the in pipe
std::string const inPipeName() {
return pipename + ".in";
std::string const inPipeName() const {
return pipename + std::string(".in");
}
/// the filename of the out pipe
std::string const outPipeName() {
return pipename + ".out";
std::string const outPipeName() const {
return pipename + std::string(".out");
}
/// Open pipes

View File

@ -1,3 +1,8 @@
2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* lyxsum.C, socktools.C, tempname.C, userinfo.C: use the
HAVE_UNISTD_H preprocessor guard.
2005-01-17 Angus Leeming <leeming@lyx.org>
* os_win32.C (init): Add Ruurd's original code to close the

View File

@ -42,7 +42,9 @@ template struct boost::detail::crc_table_t<32, 0x04C11DB7, true>;
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/mman.h>

View File

@ -18,7 +18,9 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <cerrno>

View File

@ -21,7 +21,9 @@
#include <boost/scoped_array.hpp>
#include <cstdlib>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)
# include <fcntl.h>

View File

@ -16,7 +16,9 @@
#include <boost/assert.hpp>
#include <pwd.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
using std::string;