diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-01-04 13:51:36 -0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-01-04 23:29:37 +0100 |
commit | 9da7570b07abd99123afc0e95a72a6bb0dcbddf5 (patch) | |
tree | ab9e8ae4fc595207c67e3b7538e89ddcb3d82c0a | |
parent | 2485df3897d4254cbec6fd24a768c38149c69a36 (diff) | |
download | coreboot-9da7570b07abd99123afc0e95a72a6bb0dcbddf5.tar.xz |
cbfstool: Fix warnings on OS X
Most hton and noth functions are already available
through the system headers we include on OS X, causing
the compiler to warn about duplicate definitions.
Change-Id: Id81852dfc028cf0c48155048c54d431436889c0e
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2106
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Tested-by: build bot (Jenkins)
-rw-r--r-- | util/cbfstool/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index b5258a3e6d..853e5298a4 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -22,8 +22,10 @@ #include <stdint.h> #include "swab.h" +#ifndef __APPLE__ #define ntohl(x) (host_bigendian?(x):swab32(x)) #define htonl(x) (host_bigendian?(x):swab32(x)) +#endif #define ntohll(x) (host_bigendian?(x):swab64(x)) #define htonll(x) (host_bigendian?(x):swab64(x)) |