diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-09-27 17:03:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-09-27 17:03:36 +0000 |
commit | 3f01d0898e531322d9d935ad3f16a9d7599ff386 (patch) | |
tree | 383d10976ebfed64d1ca7a7d25bffd6635876626 /tools/mkimage/src | |
parent | a723361df9cb4cb58d7e806218d98df72d57cdae (diff) | |
download | upstream-3f01d0898e531322d9d935ad3f16a9d7599ff386.tar.gz upstream-3f01d0898e531322d9d935ad3f16a9d7599ff386.tar.bz2 upstream-3f01d0898e531322d9d935ad3f16a9d7599ff386.zip |
add portability fixes for toolchain/tools (full tools/toolchain build works on osx now)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4867 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mkimage/src')
-rw-r--r-- | tools/mkimage/src/mkimage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkimage/src/mkimage.c b/tools/mkimage/src/mkimage.c index 6490da8c1c..136075c50a 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); |