# -- H E A D E R S --------------------------------------------
AC_CHECK_HEADERS([unistd.h signal.h fcntl.h])
-AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/stat.h sys/time.h sys/resource.h])
+AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/stat.h sys/time.h sys/resource.h sys/errno.h])
# -- T Y P E S & S T R U C T S --------------------------------
#include <sys/stat.h>
#endif
+#ifdef HAVE_SYS_ERRNO_H
+#include <sys/errno.h>
+#endif
+
#include <synfig/main.h>
#include "app.h"
if(fd<0)
{
- synfig::error("IPC(): Failed to open fifo \"%s\". (errno=%d)",fifo_path().c_str(),errno);
+ synfig::error("IPC(): Failed to open fifo \"%s\". (errno=%d)",fifo_path().c_str(),::errno);
}
else
{
synfig::error("Unable to get file stats");
return false;
}
- return st.st_mtime+timezone+(daylight-1)*3600;
+ time_t ret((daylight-1)*3600);
+ //ret+=timezone;
+ ret+=st.st_mtime;
+ return ret;
}
synfig::String