X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/44af1866aa41cfbbad48583106cb82201ded4fcb..c5bab4ae7e0c07bf2768a9bf668cfe2ed13b1a79:/tools/mkimage/src/mkimage.c diff --git a/tools/mkimage/src/mkimage.c b/tools/mkimage/src/mkimage.c index 6490da8c1..136075c50 100644 --- a/tools/mkimage/src/mkimage.c +++ b/tools/mkimage/src/mkimage.c @@ -440,7 +440,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); @@ -490,7 +490,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);