* src/support/lyxsum.C: fix HAVE_DECL_ISTREAMBUF_ITERATOR
* src/support/mkdir.C: add direct.h for windows
* src/support/forkedcall.C: add cerrno under windows
* src/support/tempname.C: define S_IRUSR and S_IWUSR
* src/support/package.C.in: define PATH_MAX=256
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13951
a592a061-630c-0410-9148-
cb99ea01b6c8
default:
return standard_->pixmap(row,col);
}*/
+ // make qt4 frontend at least compilable now.
+ return QPixmap();
}
#include <boost/bind.hpp>
#include <vector>
+#include <cerrno>
#ifdef _WIN32
# define SIGHUP 1
# include <windows.h>
#else
-# include <cerrno>
# include <csignal>
# include <cstdlib>
# ifdef HAVE_UNISTD_H
} // namespace
-#if HAVE_DECL_ISTREAMBUF_ITERATOR
using std::ifstream;
+#if HAVE_DECL_ISTREAMBUF_ITERATOR
using std::istreambuf_iterator;
unsigned long lyx::support::sum(string const & file)
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
+#ifdef HAVE_DIRECT_H
+# include <direct.h>
+#endif
#ifdef _WIN32
# include <windows.h>
#endif
# include <CoreServices/CoreServices.h> // FSFindFolder, FSRefMakePath
#endif
+#ifndef PATH_MAX
+# define PATH_MAX 256
+#endif
+
using std::string;
namespace fs = boost::filesystem;
// This probably just barely works...
::mktemp(templ);
# if defined (HAVE_OPEN)
+# if (!defined S_IRUSR)
+# define S_IRUSR S_IREAD
+# define S_IWUSR S_IWRITE
+# endif
return ::open(templ, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
# elif defined (HAVE__OPEN)
return ::_open(templ,