]> git.lyx.org Git - lyx.git/commitdiff
Conditionally #include headers.
authorAngus Leeming <leeming@lyx.org>
Wed, 15 Dec 2004 21:08:24 +0000 (21:08 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 15 Dec 2004 21:08:24 +0000 (21:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9381 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/ChangeLog
src/support/tempname.C

index 842d35d4caed9f5a5d569810455e08636e5e1cc9..e023d7e15e091f4e0815ad0f7f8cbcc9ed4dfcdd 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-15  Angus Leeming  <leeming@lyx.org>
+
+       * tempname.C: #include fcntl.h and sys/stat.h if creating a temp
+       file using mktemp and open.
+
 2004-12-14  Angus Leeming  <leeming@lyx.org>
 
        * os.h, os_os2.C, os_unix.C, os_win32.C:
index 8c6480bdbcf2b9830a59c5b0f32090ff8604a0ed..d80e3b9795f7a2fd4f69233773bb506206b37e05 100644 (file)
 #include <cstdlib>
 #include <unistd.h>
 
+#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)
+# include <fcntl.h>
+# include <sys/stat.h>
+#endif
+
 using boost::scoped_array;
 
 using std::string;