diff --git a/rbutil/ipodpatcher/ipodio-posix.c b/rbutil/ipodpatcher/ipodio-posix.c index db8648e70e..8d43de2d60 100644 --- a/rbutil/ipodpatcher/ipodio-posix.c +++ b/rbutil/ipodpatcher/ipodio-posix.c @@ -19,6 +19,7 @@ * ****************************************************************************/ +#if !defined(_WIN32) /* all non-Windows platforms are considered POSIX. */ #include #include @@ -388,3 +389,5 @@ ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes) return write(ipod->dh, buf, nbytes); } +#endif + diff --git a/rbutil/ipodpatcher/ipodio-win32-scsi.c b/rbutil/ipodpatcher/ipodio-win32-scsi.c index c87be72de8..7e338acbc0 100644 --- a/rbutil/ipodpatcher/ipodio-win32-scsi.c +++ b/rbutil/ipodpatcher/ipodio-win32-scsi.c @@ -49,6 +49,7 @@ * ****************************************************************************/ +#if defined(_WIN32) #include #include #include @@ -119,3 +120,5 @@ int ipod_scsi_inquiry(struct ipod_t* ipod, int page_code, return -1; } } +#endif + diff --git a/rbutil/ipodpatcher/ipodio-win32.c b/rbutil/ipodpatcher/ipodio-win32.c index abf7bdf46e..27c1b24f01 100644 --- a/rbutil/ipodpatcher/ipodio-win32.c +++ b/rbutil/ipodpatcher/ipodio-win32.c @@ -25,6 +25,8 @@ * ****************************************************************************/ +#if defined(_WIN32) + #include #include #include @@ -201,3 +203,5 @@ ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes) return count; } +#endif +