[ovs-dev] [PATCH] odp-util: Include <config.h> first.
Ben Pfaff
blp at nicira.com
Thu Jun 21 10:42:58 PDT 2012
Otherwise _GNU_SOURCE doesn't get defined early enough and on some systems
LLONG_MIN is missing when odp-util.c tries to use it indirectly through
token-bucket.h.
Reported-by: Michael Hu <mhu at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
This broke the build, so I'm pushing it immediately as obviously
correct.
lib/odp-util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/odp-util.c b/lib/odp-util.c
index 0574c9f..7caab09 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#include <arpa/inet.h>
#include <config.h>
+#include <arpa/inet.h>
#include "odp-util.h"
#include <errno.h>
#include <inttypes.h>
--
1.7.2.5
More information about the dev
mailing list