]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
admin: Fix mingw build by reordering includes
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 23 Jun 2015 11:22:15 +0000 (13:22 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 23 Jun 2015 11:22:15 +0000 (13:22 +0200)
By trying to lead the way of clean includes, I sorted the lines
alphabetically and that is a problem for mingw builds with gnulib.
As 'configmake.h' defines DATADIR and 'datatypes.h' transitively
includes 'winsock.h' that uses 'DATADIR' as a name for a struct,
it's enough to reorder those.

Even though this might be worked around in gnulib later on, this
fixes the build for now.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/libvirt-admin.c

index 11b6fe3238b8537c97c75ef2f0fa7a0b441ba4a5..b3fd0b3a8cf2227eea0110a2e6a986cead44de2d 100644 (file)
@@ -25,8 +25,9 @@
 #include <rpc/rpc.h>
 
 #include "internal.h"
-#include "configmake.h"
 #include "datatypes.h"
+#include "configmake.h"
+
 #include "viralloc.h"
 #include "virlog.h"
 #include "virnetclient.h"