build: BSD compile fixes
[openwrt-working-2016/.git] / tools / mkimage / patches / 020-openbsd_fixes.patch
1 diff -Nur u-boot-2012.04.01.orig/tools/mkimage.c u-boot-2012.04.01/tools/mkimage.c
2 --- u-boot-2012.04.01.orig/tools/mkimage.c      Wed Apr 25 15:22:50 2012
3 +++ u-boot-2012.04.01/tools/mkimage.c   Wed Mar  6 17:09:29 2013
4 @@ -449,6 +449,7 @@
5  #if defined(_POSIX_SYNCHRONIZED_IO) && \
6     !defined(__sun__) && \
7     !defined(__FreeBSD__) && \
8 +   !defined(__OpenBSD__) && \
9     !defined(__APPLE__)
10         (void) fdatasync (ifd);
11  #else
12 @@ -492,6 +493,7 @@
13  #if defined(_POSIX_SYNCHRONIZED_IO) && \
14     !defined(__sun__) && \
15     !defined(__FreeBSD__) && \
16 +   !defined(__OpenBSD__) && \
17     !defined(__APPLE__)
18         (void) fdatasync (ifd);
19  #else