mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
c9f9ba315c
commit
bb350c0cba
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -21,7 +21,9 @@
|
||||
|
||||
// getpid(), getppid()
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
// select()
|
||||
#include <sys/select.h>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user