diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-12-01 00:32:40 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-12-01 00:32:40 -0500 |
commit | ad6b0bbd0c100b984d477a5bdb6f26772340c994 (patch) | |
tree | bc8a088e473371cabba1d92058af88c40791cd36 | |
parent | 94584e8b20f67a342c625a674590e8bc1aad88cb (diff) | |
download | dimension-ad6b0bbd0c100b984d477a5bdb6f26772340c994.tar.xz |
Get rid of some <unistd.h> includes.
-rw-r--r-- | dimension/platform.c | 5 | ||||
-rw-r--r-- | tests/libdimension/gl.c | 1 | ||||
-rw-r--r-- | tests/libdimension/tests.h | 2 |
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" */ |