Whamcloud - gitweb
libext2fs: add ext2_types.h to qcow2.h
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 May 2024 04:56:58 +0000 (00:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 May 2024 04:56:58 +0000 (00:56 -0400)
The qcow2.h header file uses types such __u32 which are defined in
ext2_types.h.  So include it directly to avoid relying on users of the
qcow2.h header file to include right dependencies.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/qcow2.h

index b649c9c..343e85a 100644 (file)
@@ -24,6 +24,8 @@
  * %End-Header%
  */
 
+#include <ext2fs/ext2_types.h>
+
 /* Number of l2 tables in memory before writeback */
 #define L2_CACHE_PREALLOC      512