mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
Fix compilation issues on MACOSX
Singed-off-by: Marc Hoffman <Marc.Hoffman@analog.com> Signed-off-by: Aubrey Li <aubrey.adi@gmail.com>
This commit is contained in:
parent
56fd716298
commit
5dfaa50eb8
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ TOOLSUBDIRS =
|
|||
ifeq ($(HOSTOS)-$(HOSTARCH),darwin-ppc)
|
||||
HOST_CFLAGS = -traditional-cpp -Wall
|
||||
HOST_LDFLAGS =-multiply_defined suppress
|
||||
HOST_ENVIRO_CFLAGS = -traditional-cpp
|
||||
HOST_ENVIRO_CFLAGS =
|
||||
|
||||
else
|
||||
ifeq ($(HOSTOS)-$(HOSTARCH),netbsd-ppc)
|
||||
|
|
|
@ -446,7 +446,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);
|
||||
|
@ -496,7 +496,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);
|
||||
|
|
Loading…
Reference in a new issue