summaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-08-09 18:17:47 +0200
committerAnatolij Gustschin <agust@denx.de>2014-08-14 11:48:11 +0200
commit31cbe80c3346649cfe6a52e268d75ac4a338a086 (patch)
tree14ece158eab270365f0b3fa6b51f89a37e512b1e /tools/mkimage.c
parentd878c9a932eae626aced58128357fc6155f88739 (diff)
downloadu-boot-31cbe80c3346649cfe6a52e268d75ac4a338a086.tar.gz
mkimage: fix compilation issues on OpenBSD
Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 123d0c7d93..c70408c9ba 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -458,6 +458,7 @@ NXTARG: ;
#if defined(_POSIX_SYNCHRONIZED_IO) && \
!defined(__sun__) && \
!defined(__FreeBSD__) && \
+ !defined(__OpenBSD__) && \
!defined(__APPLE__)
(void) fdatasync (ifd);
#else
@@ -501,6 +502,7 @@ NXTARG: ;
#if defined(_POSIX_SYNCHRONIZED_IO) && \
!defined(__sun__) && \
!defined(__FreeBSD__) && \
+ !defined(__OpenBSD__) && \
!defined(__APPLE__)
(void) fdatasync (ifd);
#else