Skip to content

Commit

Permalink
util: Fix include for htonl().
Browse files Browse the repository at this point in the history
Commit 526a7c8 "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 <[email protected]>
Acked-by: Jarno Rajahalme <[email protected]>
  • Loading branch information
joestringer committed Dec 5, 2014
1 parent 819e3cd commit b2fc6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef UTIL_H
#define UTIL_H 1

#include <arpa/inet.h>
#include <inttypes.h>
#include <limits.h>
#include <stdarg.h>
Expand All @@ -26,7 +27,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "byte-order.h"
#include "compiler.h"
#include "openvswitch/types.h"
#include "openvswitch/util.h"
Expand Down

0 comments on commit b2fc6a7

Please sign in to comment.