From: wdenk Date: Tue, 7 Oct 2003 10:33:38 +0000 (+0000) Subject: Fix build problems under FreeBSD X-Git-Tag: LABEL_2006_03_12_0025~733 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=147031aef15cedbcb6dea3679094baba34002f66;p=u-boot Fix build problems under FreeBSD --- diff --git a/CHANGELOG b/CHANGELOG index 3ae8058ac9..f3481222ce 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ Changes for U-Boot 1.0.0: ====================================================================== +* Fix build problems under FreeBSD + * Add generic filesystem image type * Make fatload set filesize environment variable diff --git a/tools/mkimage.c b/tools/mkimage.c index 05c6f97be4..148ee8dc83 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -422,7 +422,7 @@ NXTARG: ; } /* We're a bit of paranoid */ -#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) +#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__) (void) fdatasync (ifd); #else (void) fsync (ifd); @@ -472,7 +472,7 @@ NXTARG: ; (void) munmap((void *)ptr, sbuf.st_size); /* We're a bit of paranoid */ -#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) +#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__FreeBSD__) (void) fdatasync (ifd); #else (void) fsync (ifd);