From: Ben Pfaff Date: Fri, 12 Feb 2010 20:51:36 +0000 (-0800) Subject: Work around bugs in system headers. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f3adc00f8d9cc0e035cd58817a28301e62eaec8;p=openvswitch 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 1daa93b2..2fd2bed3 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 cb201099..bc6fb913 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 4997a0a1..af534386 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 87230bd9..5d35156a 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 306d8516..bc7bd110 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -16,6 +16,8 @@ #include #include "pinsched.h" +#include +#include #include #include #include