From: Angus Leeming Date: Wed, 15 Dec 2004 21:08:24 +0000 (+0000) Subject: Conditionally #include headers. X-Git-Tag: 1.6.10~14734 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a8a909f25ae01bd794c658bd6cef333af92387df;p=lyx.git Conditionally #include headers. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9381 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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;