diff options
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/ipodpatcher/ipodio-posix.c | 3 | ||||
-rw-r--r-- | rbutil/ipodpatcher/ipodio-win32-scsi.c | 3 | ||||
-rw-r--r-- | rbutil/ipodpatcher/ipodio-win32.c | 4 |
3 files changed, 10 insertions, 0 deletions
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 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #if !defined(_WIN32) /* all non-Windows platforms are considered POSIX. */ | ||
22 | 23 | ||
23 | #include <stdio.h> | 24 | #include <stdio.h> |
24 | #include <unistd.h> | 25 | #include <unistd.h> |
@@ -388,3 +389,5 @@ ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes) | |||
388 | return write(ipod->dh, buf, nbytes); | 389 | return write(ipod->dh, buf, nbytes); |
389 | } | 390 | } |
390 | 391 | ||
392 | #endif | ||
393 | |||
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 @@ | |||
49 | * | 49 | * |
50 | ****************************************************************************/ | 50 | ****************************************************************************/ |
51 | 51 | ||
52 | #if defined(_WIN32) | ||
52 | #include <windows.h> | 53 | #include <windows.h> |
53 | #include <stddef.h> | 54 | #include <stddef.h> |
54 | #include <stdio.h> | 55 | #include <stdio.h> |
@@ -119,3 +120,5 @@ int ipod_scsi_inquiry(struct ipod_t* ipod, int page_code, | |||
119 | return -1; | 120 | return -1; |
120 | } | 121 | } |
121 | } | 122 | } |
123 | #endif | ||
124 | |||
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 @@ | |||
25 | * | 25 | * |
26 | ****************************************************************************/ | 26 | ****************************************************************************/ |
27 | 27 | ||
28 | #if defined(_WIN32) | ||
29 | |||
28 | #include <stdio.h> | 30 | #include <stdio.h> |
29 | #include <unistd.h> | 31 | #include <unistd.h> |
30 | #include <fcntl.h> | 32 | #include <fcntl.h> |
@@ -201,3 +203,5 @@ ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes) | |||
201 | return count; | 203 | return count; |
202 | } | 204 | } |
203 | 205 | ||
206 | #endif | ||
207 | |||