Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Conty Estevez <conty@yafray.org>2004-01-19 21:44:06 +0300
committerAlejandro Conty Estevez <conty@yafray.org>2004-01-19 21:44:06 +0300
commit32fa24339e31c12edfafe72682d8b0705f8a2f97 (patch)
tree5c592caf4caae3fac63265ab2479ee9f3fc40ffe /source/blender/yafray
parent033a16e258721627808b16d2172d3bae80d4f9fa (diff)
Added missing headers for unix systems
Diffstat (limited to 'source/blender/yafray')
-rwxr-xr-xsource/blender/yafray/intern/export_File.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp
index bcc34be2487..b9636e0fd3f 100755
--- a/source/blender/yafray/intern/export_File.cpp
+++ b/source/blender/yafray/intern/export_File.cpp
@@ -72,6 +72,8 @@ static int createDir(char* name)
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/wait.h>
+#include <stdlib.h>
#include <unistd.h>
static string unixYafrayPath()
@@ -1215,6 +1217,7 @@ bool yafrayFileRender_t::executeYafray(const string &xmlpath)
sprintf(yfr, "%d ", R.r.YF_numprocs);
string command = command_path + "yafray -c " + yfr + "\"" + xmlpath + "\"";
int ret=system(command.c_str());
+#ifndef WIN32
if(WIFEXITED(ret))
{
if(WEXITSTATUS(ret)) cout<<"Executed -"<<command<<"-"<<endl;
@@ -1231,6 +1234,10 @@ bool yafrayFileRender_t::executeYafray(const string &xmlpath)
else
cout<<"Unknown error\n";
return false;
+#else
+ return ret==0;
+#endif
+
}