aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@aol.com>2020-12-09 08:49:37 +0800
committerGao Xiang <hsiangkao@aol.com>2020-12-13 10:44:26 +0800
commit04f098074a0b36444a40e1043a55df5990ef4581 (patch)
tree572df1f3abed76ab5c124444c1931c229249b5ec
parent6c938b755682629a26f85e5540f40c0d316130ed (diff)
downloaderofs-utils-04f098074a0b36444a40e1043a55df5990ef4581.tar.gz
erofs-utils: mkfs: fix uuid.h location
As Karel reported [1], "The subdirectory in #include <uuid/uuid.h> is unnecessary (or wrong), if you use PKG_CHECK_MODULES([libuuid], [uuid]) than it returns the subdirectory as -I, see $ pkg-config --cflags uuid -I/usr/include/uuid so the correct way is #include <uuid.h>". Let's fix it now! [1] https://lore.kernel.org/r/20201208100910.dqqh5cqihewkyetc@ws.net.home Link: https://lore.kernel.org/r/20201209004937.1672-1-hsiangkao@aol.com Fixes: e023d47593ff ("erofs-utils: support 128-bit filesystem UUID") Reported-by: Karel Zak <kzak@redhat.com> Reviewed-by: Li Guifu <bluce.lee@aliyun.com> Signed-off-by: Gao Xiang <hsiangkao@aol.com>
-rw-r--r--mkfs/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs/main.c b/mkfs/main.c
index c63b274..abd48be 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -24,7 +24,7 @@
#include "erofs/exclude.h"
#ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
+#include <uuid.h>
#endif
#define EROFS_SUPER_END (EROFS_SUPER_OFFSET + sizeof(struct erofs_super_block))