From: Ben Pfaff Date: Fri, 12 Feb 2010 20:51:36 +0000 (-0800) Subject: Work around bugs in system headers. X-Git-Tag: v0.99.2~6 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7f3adc00f8d9cc0e035cd58817a28301e62eaec8;p=sliver-openvswitch.git Work around bugs in system headers. On some system, at least, one must include before , and before or . From Jean Tourrilhes . --- 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