summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dimension/platform.c5
-rw-r--r--tests/libdimension/gl.c1
-rw-r--r--tests/libdimension/tests.h2
3 files changed, 3 insertions, 5 deletions
diff --git a/dimension/platform.c b/dimension/platform.c
index 06c74bc..f926ea7 100644
--- a/dimension/platform.c
+++ b/dimension/platform.c
@@ -18,10 +18,11 @@
*************************************************************************/
#include "platform.h"
-
+#if HAVE_UNISTD_H
+ #include <unistd.h>
+#endif
#if DMNSN_TIOCGWINSZ
#include <sys/ioctl.h>
- #include <unistd.h>
#endif
unsigned int
diff --git a/tests/libdimension/gl.c b/tests/libdimension/gl.c
index 71ba64e..581c380 100644
--- a/tests/libdimension/gl.c
+++ b/tests/libdimension/gl.c
@@ -19,7 +19,6 @@
#include "tests.h"
#include <stdlib.h>
-#include <unistd.h>
int
main(void)
diff --git a/tests/libdimension/tests.h b/tests/libdimension/tests.h
index 294670d..bfc088f 100644
--- a/tests/libdimension/tests.h
+++ b/tests/libdimension/tests.h
@@ -21,8 +21,6 @@
#define TESTS_H
#include "dimension.h"
-#include <unistd.h>
-#include <stdio.h>
#ifdef __cplusplus
/* We've been included from a C++ file; mark everything here as extern "C" */