diff options
author | pixel <pixel> | 2002-12-23 16:42:16 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-23 16:42:16 +0000 |
commit | 59e1829827c6daa888587f5aaf657dfc177daf3d (patch) | |
tree | 2fd6adc3659da0818d8578e1f69315589207922e /lib | |
parent | 34c6ea80ecb40d65e6b0da40efad5239356bb497 (diff) |
Win32 sux
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Handle.cc | 7 | ||||
-rw-r--r-- | lib/Input.cc | 1 | ||||
-rw-r--r-- | lib/Output.cc | 7 | ||||
-rw-r--r-- | lib/fileutils.cc | 2 |
4 files changed, 12 insertions, 5 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index 07a2752..1941254 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -4,9 +4,12 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_FCNTL_H -#include <fcntl.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#else +#include <io.h> #endif +#include <fcntl.h> #include "Handle.h" #include "gettext.h" diff --git a/lib/Input.cc b/lib/Input.cc index 5109d2a..719c560 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -1,5 +1,4 @@ #include <stdio.h> -#include <unistd.h> #include <string.h> #include <errno.h> #include <sys/types.h> diff --git a/lib/Output.cc b/lib/Output.cc index 99fff7a..2007757 100644 --- a/lib/Output.cc +++ b/lib/Output.cc @@ -6,9 +6,12 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_FCNTL_H -#include <fcntl.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#else +#include <io.h> #endif +#include <fcntl.h> #include "Output.h" #include "Exceptions.h" #include "gettext.h" diff --git a/lib/fileutils.cc b/lib/fileutils.cc index 6e3ef17..b637546 100644 --- a/lib/fileutils.cc +++ b/lib/fileutils.cc @@ -26,6 +26,8 @@ #endif #ifdef HAVE_UNISTD_H #include <unistd.h> +#else +#include <io.h> #endif #include "generic.h" |