#include "support/textutils.h"
#include "support/convert.h"
+#if !defined (HAVE_FORK)
+# define fork() -1
+#endif
+
#include <boost/bind.hpp>
#include <boost/filesystem/exception.hpp>
#include <boost/filesystem/operations.hpp>
using std::string;
using std::time_t;
-
namespace lyx {
using support::addName;
namespace {
-int const LYX_FORMAT = 288; //RGH, command insets
+int const LYX_FORMAT = 291; //Uwe Stöhr, Vietnamese
} // namespace anon
};
+#if !defined (HAVE_FORK)
+# define fork() -1
+#endif
+
int AutoSaveBuffer::generateChild()
{
// tmp_ret will be located (usually) in /tmp
// will that be a problem?
- pid_t const pid = fork(); // If you want to debug the autosave
- // you should set pid to -1, and comment out the
- // fork.
+ pid_t const pid = fork();
+ // If you want to debug the autosave
+ // you should set pid to -1, and comment out the fork.
if (pid == 0 || pid == -1) {
// pid = -1 signifies that lyx was unable
// to fork. But we will do the save