Guard HAVE_UNISTD_H.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9512 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-01-20 15:38:14 +00:00
parent 3b5537628b
commit f3024416ad
23 changed files with 63 additions and 19 deletions

View File

@ -1,3 +1,7 @@
2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* pch.h: use the HAVE_UNISTD_H preprocessor guard.
2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* client.C: use the HAVE_UNISTD_H preprocessor guard.

View File

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

View File

@ -8,7 +8,9 @@
#include <boost/scoped_ptr.hpp>
#include <fcntl.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <sys/select.h>
#include <sys/socket.h>

View File

@ -1,3 +1,7 @@
2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* pch.h: use the HAVE_UNISTD_H preprocessor guard.
2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* LyXView.C: use the HAVE_UNISTD_H preprocessor guard.

View File

@ -41,7 +41,7 @@
#include <sys/time.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
# include <unistd.h>
#endif
using lyx::support::MakeDisplayPath;

View File

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

View File

@ -8,7 +8,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <string.h>
#include <gnome.h>

View File

@ -8,7 +8,9 @@
#include <boost/utility.hpp>
#include <sys/time.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <limits>
#include <map>

View File

@ -1,3 +1,9 @@
2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* FileInfo.h, chdir.C, forkedcall.C, forkedcontr.C, getcwd.C,
mkdir.C, os_defines.h, pch.h, rmdir.C, unlink.C:
use the HAVE_UNISTD_H preprocessor guard.
2005-01-20 Angus Leeming <leeming@lyx.org>
* filetools.[Ch] (LibScriptSearch): modify the code that replaces

View File

@ -16,7 +16,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <ctime>
#include <string>

View File

@ -12,7 +12,9 @@
#include "support/lyxlib.h"
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
int lyx::support::chdir(std::string const & name)
{

View File

@ -42,7 +42,9 @@
#include <cstdlib>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <vector>

View File

@ -23,7 +23,9 @@
#include <cerrno>
#include <cstdlib>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <sys/wait.h>
using boost::bind;

View File

@ -15,7 +15,9 @@
#include <boost/scoped_array.hpp>
#include <cerrno>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
using boost::scoped_array;

View File

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

View File

@ -15,7 +15,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
int lyx::support::mkdir(std::string const & pathname, unsigned long int mode)
{

View File

@ -23,7 +23,9 @@ inline int readlink(const char *, char *, size_t) {return -1;}
#define readlink(s, t, l) (-1)
#endif
#include <process.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <X11/Xlocale.h>
/* #include <malloc.h> */
#define lstat stat

View File

@ -21,7 +21,9 @@
#include <sys/un.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <algorithm>
#include <cctype>

View File

@ -12,7 +12,9 @@
#include "support/lyxlib.h"
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
int lyx::support::rmdir(std::string const & dir)
{

View File

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

View File

@ -22,7 +22,7 @@
#include <cstdlib>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
# include <unistd.h>
#endif
#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)

View File

@ -12,7 +12,9 @@
#include "support/lyxlib.h"
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
int lyx::support::unlink(std::string const & pathname)
{

View File

@ -17,7 +17,7 @@
#include <pwd.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
# include <unistd.h>
#endif
#include <sys/types.h>