[COMMIT osv master] tests: fix missing include

5 views
Skip to first unread message

Commit Bot

unread,
Sep 12, 2023, 4:50:29 PM9/12/23
to osv...@googlegroups.com, Nadav Har'El
From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

tests: fix missing include

The test tests/tst-align.cc used intptr_t but forgot to include the
appropriate header file (stdint.h). It got implicitly included on
older versions of stdlibc++ header files, but is no longer the case
in Fedora 38, so let's include the missing header.

Signed-off-by: Nadav Har'El <n...@scylladb.com>

---
diff --git a/tests/tst-align.cc b/tests/tst-align.cc
--- a/tests/tst-align.cc
+++ b/tests/tst-align.cc
@@ -20,6 +20,7 @@

#include <stdlib.h>
#include <malloc.h>
+#include <stdint.h>

static int tests = 0, fails = 0;

Reply all
Reply to author
Forward
0 new messages