From a8a909f25ae01bd794c658bd6cef333af92387df Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Wed, 15 Dec 2004 21:08:24 +0000 Subject: [PATCH] Conditionally #include headers. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9381 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 5 +++++ src/support/tempname.C | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 842d35d4ca..e023d7e15e 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2004-12-15 Angus Leeming + + * tempname.C: #include fcntl.h and sys/stat.h if creating a temp + file using mktemp and open. + 2004-12-14 Angus Leeming * os.h, os_os2.C, os_unix.C, os_win32.C: diff --git a/src/support/tempname.C b/src/support/tempname.C index 8c6480bdbc..d80e3b9795 100644 --- a/src/support/tempname.C +++ b/src/support/tempname.C @@ -22,6 +22,11 @@ #include #include +#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP) +# include +# include +#endif + using boost::scoped_array; using std::string; -- 2.39.5