Skip to content
Snippets Groups Projects
Commit 147031ae authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Fix build problems under FreeBSD

parent 887b372f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment