util: Fix include for htonl().
authorJoe Stringer <joestringer@nicira.com>
Fri, 5 Dec 2014 00:05:33 +0000 (16:05 -0800)
committerJustin Pettit <jpettit@nicira.com>
Wed, 10 Dec 2014 22:06:21 +0000 (14:06 -0800)
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 <joestringer@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/util.h

index d2adfd4..17c6a93 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef UTIL_H
 #define UTIL_H 1
 
+#include <arpa/inet.h>
 #include <inttypes.h>
 #include <limits.h>
 #include <stdarg.h>
@@ -26,7 +27,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "byte-order.h"
 #include "compiler.h"
 #include "openvswitch/types.h"