[libvirt] [PATCH] Fix _FILE_OFFSET_BITS re-definition

john.levon at sun.com john.levon at sun.com
Wed Dec 17 02:52:13 UTC 2008


# HG changeset patch
# User john.levon at sun.com
# Date 1229399267 28800
# Node ID db36391b739c117f5887388f65f31e6a9d2d361b
# Parent  020f8b8e9340287a6ab3d869b359e39b905cd0ff
Fix _FILE_OFFSET_BITS re-definition

Since config.h contains the _FILE_OFFSET_BITS setting (a little dubious
in itself), it must be the first header included, otherwise system
headers can define _FILE_OFFSET_BITS differently themselves.

Signed-off-by: John Levon <john.levon at sun.com>

diff --git a/src/node_device_hal.c b/src/node_device_hal.c
--- a/src/node_device_hal.c
+++ b/src/node_device_hal.c
@@ -21,10 +21,11 @@
  * Author: David F. Lively <dlively at virtualiron.com>
  */
 
+#include <config.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 
-#include <config.h>
 #include <libhal.h>
 
 #include "node_device_conf.h"




More information about the libvir-list mailing list