summaryrefslogtreecommitdiff
path: root/rbutil/sansapatcher/sansaio-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/sansapatcher/sansaio-posix.c')
-rw-r--r--rbutil/sansapatcher/sansaio-posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/sansapatcher/sansaio-posix.c b/rbutil/sansapatcher/sansaio-posix.c
index 56f755ab9a..cb169ce309 100644
--- a/rbutil/sansapatcher/sansaio-posix.c
+++ b/rbutil/sansapatcher/sansaio-posix.c
@@ -19,6 +19,7 @@
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#if !defined(_WIN32) /* all non-Windows platforms supported are POSIX. */
22#include <stdio.h> 23#include <stdio.h>
23#include <unistd.h> 24#include <unistd.h>
24#include <fcntl.h> 25#include <fcntl.h>
@@ -142,3 +143,5 @@ int sansa_write(struct sansa_t* sansa, unsigned char* buf, int nbytes)
142{ 143{
143 return write(sansa->dh, buf, nbytes); 144 return write(sansa->dh, buf, nbytes);
144} 145}
146#endif
147