From 49e016c48fe58ee50cd2f1dbb95bad420dd6c50e Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 15 Dec 2006 00:09:48 +0000 Subject: Reorganise the ioctl() #ifdefs - this should fix ipodpatcher for BSD git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11768 a1c6a512-1295-4272-9138-f99709370657 --- tools/ipodpatcher/ipodio-posix.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/ipodpatcher/ipodio-posix.c b/tools/ipodpatcher/ipodio-posix.c index 4b55d62..7035bf2 100644 --- a/tools/ipodpatcher/ipodio-posix.c +++ b/tools/ipodpatcher/ipodio-posix.c @@ -25,18 +25,17 @@ #include #include #include -#include -#if defined(__APPLE__) && defined(__MACH__) -#include -#endif #if defined(linux) || defined (__linux) - #define IPOD_SECTORSIZE_IOCTL BLKSSZGET +#include +#define IPOD_SECTORSIZE_IOCTL BLKSSZGET #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) \ || defined(__bsdi__) || defined(__DragonFly__) - #define IPOD_SECTORSIZE_IOCTL DIOCGSECTORSIZE +#include +#define IPOD_SECTORSIZE_IOCTL DIOCGSECTORSIZE #elif defined(__APPLE__) && defined(__MACH__) - #define IPOD_SECTORSIZE_IOCTL DKIOCGETBLOCKSIZE +#include +#define IPOD_SECTORSIZE_IOCTL DKIOCGETBLOCKSIZE #else #error No sector-size detection implemented for this platform #endif -- cgit v1.1