[RFC PATCH 0/1] fix fanotify_mark.c for musl

Jonathan Borne jborne at kalray.eu
Mon Feb 7 13:57:11 UTC 2022


Hi,
I cannot compile fanotify_mark.c test with musl libc because
uintptr_t is missing.

I see that <unistd.h> is included but only intptr_t is defined
here according to POSIX manual.

Also according to POSIX uintptr_t should be defined
in <stdint.h>.

After investigation I found that the fanotify.h provided
by glibc or uclibc includes <stdint.h> but musl doesnt.

Would you agree to include <stdint.h> directly in
fanotify_mark.c as a solution?

Thanks.

Best regards.
Jonathan.


Jonathan Borne (1):
  tests: add missing <stdint.h> in fanotify_mark.c

 tests/fanotify_mark.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.17.1







More information about the Strace-devel mailing list