From d16564f953abc789dca399ecde8e60ac4a9103d7 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 20 Jan 2005 10:47:29 +0000 Subject: [PATCH] Use the HAVE_UNISTD_H guard. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9505 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 1 + src/lyxserver.C | 2 ++ src/support/ChangeLog | 1 + src/support/forkedcall.C | 2 ++ 4 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 82aa35a0aa..ccee68a7ae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -6,6 +6,7 @@ * BufferView_pimpl.C: * DepTable.C: * buffer.C: + * lyxserver.C: * lyxvc.C: use the HAVE_UNISTD_H guard. 2005-01-19 Jean-Marc Lasgouttes diff --git a/src/lyxserver.C b/src/lyxserver.C index 4ec7a43dda..7934bfd459 100644 --- a/src/lyxserver.C +++ b/src/lyxserver.C @@ -38,7 +38,9 @@ #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include #include diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 852382daa0..10e37e6b2a 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -2,6 +2,7 @@ * FileInfo.h: * chdir.C: + * forkedcall.C: * forkedcontr.C: * getcwd.C: * lyxsum.C: diff --git a/src/support/forkedcall.C b/src/support/forkedcall.C index c3e6938098..93e2d634ee 100644 --- a/src/support/forkedcall.C +++ b/src/support/forkedcall.C @@ -40,7 +40,9 @@ #include #include #include +#ifdef HAVE_UNISTD_H #include +#endif using std::endl;