summaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorAubrey.Li <aubrey.adi@gmail.com>2007-05-14 11:47:35 +0800
committerWolfgang Denk <wd@denx.de>2007-05-15 22:18:07 +0200
commit5dfaa50eb819686bfba1927e8c5b8a70a4d65fd3 (patch)
treef2592a2aa896f16968f77286bccd6e4e0d4ced56 /tools/mkimage.c
parent56fd7162985c412317bbf763a225fba23c64fd31 (diff)
downloadu-boot-imx-5dfaa50eb819686bfba1927e8c5b8a70a4d65fd3.zip
u-boot-imx-5dfaa50eb819686bfba1927e8c5b8a70a4d65fd3.tar.gz
u-boot-imx-5dfaa50eb819686bfba1927e8c5b8a70a4d65fd3.tar.bz2
Fix compilation issues on MACOSX
Singed-off-by: Marc Hoffman <Marc.Hoffman@analog.com> Signed-off-by: Aubrey Li <aubrey.adi@gmail.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 416e658..2125130 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -446,7 +446,7 @@ NXTARG: ;
}
/* We're a bit of paranoid */
-#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__)
+#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__) && !defined(__APPLE__)
(void) fdatasync (ifd);
#else
(void) fsync (ifd);
@@ -496,7 +496,7 @@ NXTARG: ;
(void) munmap((void *)ptr, sbuf.st_size);
/* We're a bit of paranoid */
-#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__)
+#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__) && !defined(__APPLE__)
(void) fdatasync (ifd);
#else
(void) fsync (ifd);