From 7f3adc00f8d9cc0e035cd58817a28301e62eaec8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 12 Feb 2010 12:51:36 -0800 Subject: [PATCH] Work around bugs in system headers. On some system, at least, one must include before , and before or . From Jean Tourrilhes . --- lib/dpif-netdev.c | 2 +- lib/flow.h | 3 ++- lib/ofp-print.c | 1 + lib/stp.c | 4 +++- ofproto/pinsched.c | 2 ++ 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 1daa93b29..2fd2bed37 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -22,8 +22,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/lib/flow.h b/lib/flow.h index cb2010996..bc6fb913d 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ #ifndef FLOW_H #define FLOW_H 1 +#include #include #include #include diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 4997a0a1e..af5343865 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -19,6 +19,7 @@ #include #include +#include #include #include #include diff --git a/lib/stp.c b/lib/stp.c index 87230bd9a..5d35156ac 100644 --- a/lib/stp.c +++ b/lib/stp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,8 @@ * applies to all modifications. */ #include "stp.h" +#include +#include #include #include #include diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index 306d8516e..bc7bd1100 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -16,6 +16,8 @@ #include #include "pinsched.h" +#include +#include #include #include #include -- 2.43.0