summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-30 05:25:21 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-30 05:25:21 (GMT)
commit83647da87e10843ba398451dc5cf89d3fe2db0df (patch)
tree209e49350ba82b20f9cfc01e276edf22abb439f3 /src
parent3ff0eeefaa601080b2821e7b07c94fbae5ec05b7 (diff)
linux build fixes
git-svn-id: http://svn.clifford.at/openscad/trunk@369 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src')
-rw-r--r--src/export.cc1
-rw-r--r--src/glview.cc1
-rw-r--r--src/grid.h1
-rw-r--r--src/openscad.cc2
-rw-r--r--src/polyset.h2
5 files changed, 5 insertions, 2 deletions
diff --git a/src/export.cc b/src/export.cc
index 9bb5816..99419aa 100644
--- a/src/export.cc
+++ b/src/export.cc
@@ -24,6 +24,7 @@
#include <QApplication>
#include <QProgressDialog>
+#include <errno.h>
#ifdef ENABLE_CGAL
#include "cgal.h"
diff --git a/src/glview.cc b/src/glview.cc
index 72e9ff2..a6db48f 100644
--- a/src/glview.cc
+++ b/src/glview.cc
@@ -27,6 +27,7 @@
#include <QMessageBox>
#include <QTimer>
#include <math.h>
+#include <stdio.h>
#define FAR_FAR_AWAY 100000.0
diff --git a/src/grid.h b/src/grid.h
index 2b461f4..af92a71 100644
--- a/src/grid.h
+++ b/src/grid.h
@@ -2,6 +2,7 @@
#define GRID_H_
#include <math.h>
+#include <stdint.h>
#include <QHash>
const double GRID_COARSE = 0.001;
diff --git a/src/openscad.cc b/src/openscad.cc
index 05b673b..8c0db68 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -64,7 +64,7 @@ void handle_dep(QString filename)
if (!QFile(filename).exists() && make_command) {
char buffer[4096];
snprintf(buffer, 4096, "%s '%s'", make_command, filename.replace("'", "'\\''").toUtf8().data());
- system(buffer);
+ system(buffer); // FIXME: Handle error
}
}
diff --git a/src/polyset.h b/src/polyset.h
index 2196d1b..0914e91 100644
--- a/src/polyset.h
+++ b/src/polyset.h
@@ -15,7 +15,7 @@
# include "cgal.h"
#endif
-#include <QCache.h>
+#include <QCache>
class PolySet
{
contact: Jan Huwald // Impressum