From eef49ef4171011dec88156481cc70ee350cbbc92 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 15 Nov 2010 08:40:30 +0000 Subject: Fixes for the MSC build --- src/ath.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ath.c') diff --git a/src/ath.c b/src/ath.c index e5acbdaa..e5b9964e 100644 --- a/src/ath.c +++ b/src/ath.c @@ -128,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 } -- cgit v1.2.3