]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
src/discontiguous-io.cpp: Fix the build
authorBart Van Assche <bvanassche@acm.org>
Thu, 2 Feb 2023 18:20:39 +0000 (10:20 -0800)
committerBart Van Assche <bvanassche@acm.org>
Thu, 2 Feb 2023 18:22:56 +0000 (10:22 -0800)
Fix the following build error:

g++  -O2 -std=c++11 -Wall -Wextra -Wshadow -Wno-sign-compare -Werror -DHAVE_LINUX_BLKZONED_H -o discontiguous-io discontiguous-io.cpp
discontiguous-io.cpp: In function ‘void dumphex(std::ostream&, const void*, size_t)’:
discontiguous-io.cpp:92:24: error: ‘uintptr_t’ was not declared in this scope

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
src/discontiguous-io.cpp

index 31a07ef3b359aa982e681342bb5fab2ac5f66c1d..5abd7c5634d47797dea25350e830884c95ed1727 100644 (file)
@@ -3,6 +3,7 @@
 // Copyright (c) 2016-2018 Western Digital Corporation or its affiliates
 
 #include <cassert>
+#include <cstdint>     // uintptr_t
 #include <cstring>     // memset()
 #include <fcntl.h>     // O_RDONLY
 #include <iomanip>