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

richard at uclinux.net richard at uclinux.net
Tue May 31 10:18:49 CEST 2005


Good morning (o;


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:     ;
    }
 
    /* 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);


Changelog:

* Patch by Richard Klingler, 31 May 2005:
  To compile mkimage on OSX 10.4.x.


best regards
rick






More information about the U-Boot mailing list