[ovs-dev] [PATCH] ofpbuf: Don't include unneeded "packets.h".

Ben Pfaff blp at ovn.org
Mon Mar 21 16:23:26 UTC 2016


Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 lib/ofpbuf.h    | 3 ++-
 lib/rtnetlink.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h
index 8008cb4..0b66302 100644
--- a/lib/ofpbuf.h
+++ b/lib/ofpbuf.h
@@ -20,9 +20,10 @@
 #include <stddef.h>
 #include <stdint.h>
 #include "list.h"
-#include "packets.h"
 #include "util.h"
 
+struct ds;
+
 #ifdef  __cplusplus
 extern "C" {
 #endif
diff --git a/lib/rtnetlink.c b/lib/rtnetlink.c
index d12467e..1c95933 100644
--- a/lib/rtnetlink.c
+++ b/lib/rtnetlink.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2010, 2013, 2015 Nicira, Inc.
+ * Copyright (c) 2009, 2010, 2013, 2015, 2016 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@
 #include "netlink.h"
 #include "netlink-notifier.h"
 #include "ofpbuf.h"
+#include "packets.h"
 
 static struct nln *nln = NULL;
 static struct rtnetlink_change rtn_change;
-- 
2.1.3




More information about the dev mailing list