diff options
Diffstat (limited to 'src/ath.c')
| -rw-r--r-- | src/ath.c | 13 | 
1 files changed, 11 insertions, 2 deletions
@@ -33,7 +33,9 @@  #  include <sys/time.h>  # endif  #endif -#include <sys/types.h> +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif  #ifndef HAVE_W32_SYSTEM  #include <sys/wait.h>  #endif @@ -60,7 +62,6 @@ ath_self (void)  }  #else  # ifdef __linux -#include <sys/types.h>  #include <sys/syscall.h>  uintptr_t  ath_self (void) @@ -127,14 +128,22 @@ ath_mutex_unlock (ath_mutex_t *lock)  ssize_t  ath_read (int fd, void *buf, size_t nbytes)  { +#if defined(HAVE_W32CE_SYSTEM) && defined(_MSC_VER) +  return -1; /* Not supported. */ +#else    return read (fd, buf, nbytes); +#endif  }  ssize_t  ath_write (int fd, const void *buf, size_t nbytes)  { +#if defined(HAVE_W32CE_SYSTEM) && defined(_MSC_VER) +  return -1; /* Not supported. */ +#else    return write (fd, buf, nbytes); +#endif  }  | 
