[U-Boot-Users] u-boot OSX 10.4.x support

Wolfgang Denk wd at denx.de
Fri Aug 12 23:01:08 CEST 2005


In message <r02010500-1041-9E857FF0D1AC11D9ABAD00039387ACB6@[10.0.1.1]> you wrote:
> 
> Maybe the few OSX users can test this small patch to compile mkimage
> on OSX 10.4.x? There is no "fdatasync" in OSX Tiger:
> 
> 
> Patch:
> 
> diff -purN u-boot.orig/tools/mkimage.c u-boot/tools/mkimage.c
> --- u-boot.orig/tools/mkimage.c 2005-05-31 11:09:02.000000000 +0300
> +++ u-boot/tools/mkimage.c  2005-05-31 11:09:58.000000000 +0300
> @@ -440,7 +440,7 @@ NXTARG:     ;
>     }
> =20
>     /* We're a bit of paranoid */
> -#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__Fre=
> eBSD__)
> +#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__Fre=
> eBSD__) &&
> !defined(__APPLE__)
>     (void) fdatasync (ifd);
>  #else
>     (void) fsync (ifd);
> @@ -490,7 +490,7 @@ NXTARG:     ;
>     (void) munmap((void *)ptr, sbuf.st_size);
> =20
>     /* We're a bit of paranoid */
> -#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__Fre=
> eBSD__)
> +#if defined(_POSIX_SYNCHRONIZED_IO) && !defined(__sun__) && !defined(__Fre=
> eBSD__) &&
> !defined(__APPLE__)
>     (void) fdatasync (ifd);
>  #else
>     (void) fsync (ifd);
> 
> 
> Changelog:
> 
> * Patch by Richard Klingler, 31 May 2005:
>   To compile mkimage on OSX 10.4.x.

I never received any test reports about this one.

Any comments?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The high cost of living hasn't affected its popularity.




More information about the U-Boot mailing list