[coreboot-gerrit] Patch set updated for coreboot: cbfstool: include netinet/in.h for OS X

Martin Roth (martinroth@google.com) gerrit at coreboot.org
Mon Jan 18 16:08:19 CET 2016


Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13029

-gerrit

commit ddb0a6d492935331b3999e144a77b61acfb882ed
Author: Martin Roth <martinroth at google.com>
Date:   Sun Jan 17 18:11:03 2016 -0700

    cbfstool: include netinet/in.h for OS X
    
    Supply the function declarations for ntohl and htonl so cbfstool will
    build on OS X.
    Signed-off-by: Martin Roth <martinroth at google.com>
    
    Change-Id: I4850cbb92f38c852397162757ea57e3a8d102d0e
---
 util/cbfstool/swab.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/cbfstool/swab.h b/util/cbfstool/swab.h
index 22ae8b4..74f695a 100644
--- a/util/cbfstool/swab.h
+++ b/util/cbfstool/swab.h
@@ -20,6 +20,8 @@
 #define htonl(x)	(is_big_endian() ? (uint32_t)(x) : swab32(x))
 #elif defined(__NetBSD__)
 #include <arpa/inet.h>
+#elif defined(__APPLE__)
+#include <netinet/in.h>
 #endif
 #define ntohll(x)	(is_big_endian() ? (uint64_t)(x) : swab64(x))
 #define htonll(x)	(is_big_endian() ? (uint64_t)(x) : swab64(x))



More information about the coreboot-gerrit mailing list