Whamcloud - gitweb
lib/blkid/getsize.c: Move #include "blkidP.h" before <sys/queues.h>
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 13 Jan 2005 03:15:45 +0000 (04:15 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Thu, 13 Jan 2005 03:15:45 +0000 (04:15 +0100)
to avoid a clash with the LIST_HEAD in the latter file that results
in compilation failure.

lib/blkid/ChangeLog
lib/blkid/getsize.c

index 679e48b..c693c8b 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-13  Matthias Andree  <matthias.andree@gmx.de>
+
+       * getsize.c: Move #include "blkidP.h" before <sys/queues.h> to avoid a
+       clash with the LIST_HEAD in the latter file.
+
 2005-01-10  Theodore Ts'o  <tytso@mit.edu>
 
        * probe.c: Integrate and fix up Janos Farkas's patch.  Version 0
index 94e00fa..978097d 100644 (file)
@@ -12,6 +12,9 @@
 #define _LARGEFILE_SOURCE
 #define _LARGEFILE64_SOURCE
 
+/* include this before sys/queues.h! */
+#include "blkidP.h"
+
 #include <stdio.h>
 #if HAVE_UNISTD_H
 #include <unistd.h>
@@ -40,9 +43,6 @@
 #include <sys/utsname.h>
 #endif
 
-#include "blkidP.h"
-
-
 #if defined(__linux__) && defined(_IO) && !defined(BLKGETSIZE)
 #define BLKGETSIZE _IO(0x12,96)        /* return device size */
 #endif