summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Borne <jborne@kalray.eu>2022-02-07 14:57:12 +0100
committerDmitry V. Levin <ldv@strace.io>2022-02-07 13:57:12 +0000
commit57b0ba2147a267c8fd645d46821b5020157e349d (patch)
treecf3c75554e9011e012590219ca1866cbd2ed998c
parent1ffe04ffdd23abe303609d04abff2421f18037d9 (diff)
downloadstrace-57b0ba2147a267c8fd645d46821b5020157e349d.tar.gz
tests: add missing <stdint.h> in fanotify_mark.c
With musl libc, fanotify_mark.c compilation fails with 'uintptr_t' undeclared. Following POSIX specification uintptr_t should be defined in <stdint.h>. However, fanotify_mark.c does not include <stdint.h> directly. Instead, it includes <sys/fanotify.h>. With glibc or uclibc-ng, fanotify_mark.c compiles because the provided <sys/fanotify.h> includes <stdint.h>. This is not the case with musl libc. * tests/fanotify_mark.c: Include <stdint.h>. Signed-off-by: Jonathan Borne <jborne@kalray.eu>
-rw-r--r--tests/fanotify_mark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c
index 59c2ff07a..2f0787f36 100644
--- a/tests/fanotify_mark.c
+++ b/tests/fanotify_mark.c
@@ -15,6 +15,7 @@
#if defined HAVE_SYS_FANOTIFY_H && defined HAVE_FANOTIFY_MARK
# include <limits.h>
+# include <stdint.h>
# include <stdio.h>
# include <unistd.h>
# include <sys/fanotify.h>