17232360d2c2594f89bd2da453041b0f7f616560
[openwrt/openwrt.git] / tools / mkimage / patches / 020-openbsd_fixes.patch
1 --- a/tools/mkimage.c
2 +++ b/tools/mkimage.c
3 @@ -464,6 +464,7 @@
4 #if defined(_POSIX_SYNCHRONIZED_IO) && \
5 !defined(__sun__) && \
6 !defined(__FreeBSD__) && \
7 + !defined(__OpenBSD__) && \
8 !defined(__APPLE__)
9 (void) fdatasync (ifd);
10 #else
11 @@ -507,6 +508,7 @@
12 #if defined(_POSIX_SYNCHRONIZED_IO) && \
13 !defined(__sun__) && \
14 !defined(__FreeBSD__) && \
15 + !defined(__OpenBSD__) && \
16 !defined(__APPLE__)
17 (void) fdatasync (ifd);
18 #else