summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-10-07 10:33:38 +0000
committerwdenk <wdenk>2003-10-07 10:33:38 +0000
commit147031aef15cedbcb6dea3679094baba34002f66 (patch)
treefaa2bc0050f360f1f7f1db6a99a473a0ae452951 /tools
parent887b372f5dfee6ac027bbdb8c14904d5e64427bf (diff)
downloadu-boot-imx-147031aef15cedbcb6dea3679094baba34002f66.zip
u-boot-imx-147031aef15cedbcb6dea3679094baba34002f66.tar.gz
u-boot-imx-147031aef15cedbcb6dea3679094baba34002f66.tar.bz2
Fix build problems under FreeBSD
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 05c6f97..148ee8d 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -422,7 +422,7 @@ NXTARG: ;
}
/* We're a bit of paranoid */
-#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__)
+#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__)
(void) fdatasync (ifd);
#else
(void) fsync (ifd);
@@ -472,7 +472,7 @@ NXTARG: ;
(void) munmap((void *)ptr, sbuf.st_size);
/* We're a bit of paranoid */
-#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__)
+#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__)
(void) fdatasync (ifd);
#else
(void) fsync (ifd);