odp-util: Include <config.h> first.
authorBen Pfaff <blp@nicira.com>
Thu, 21 Jun 2012 17:42:20 +0000 (10:42 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 Jun 2012 17:42:20 +0000 (10:42 -0700)
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@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c

index 0574c9f359b80463a9db2d717932334bc879a12e..7caab09c5c3694ae4667ddd57ac29e011b9b1dac 100644 (file)
@@ -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>