From b2fc6a744775e0214b9a304a348b3131dfcd1e67 Mon Sep 17 00:00:00 2001 From: Joe Stringer Date: Thu, 4 Dec 2014 16:05:33 -0800 Subject: [PATCH] util: Fix include for htonl(). Commit 526a7c85d11dc "util: Add be32_prefix_mask()." added an include for byte-order.h into util.h, which could cause link failures if users of libopenvswitch defined their own version of htonll(). Change the include, as only htonl() is needed and arpa/inet.h provides this. Signed-off-by: Joe Stringer Acked-by: Jarno Rajahalme --- lib/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.h b/lib/util.h index 8ef80c027..fa23ce5ca 100644 --- a/lib/util.h +++ b/lib/util.h @@ -17,6 +17,7 @@ #ifndef UTIL_H #define UTIL_H 1 +#include #include #include #include @@ -26,7 +27,6 @@ #include #include #include -#include "byte-order.h" #include "compiler.h" #include "openvswitch/types.h" #include "openvswitch/util.h" -- 2.20.1