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

Dmitry V. Levin ldv at altlinux.org
Mon Feb 7 14:00:26 UTC 2022


On Mon, Feb 07, 2022 at 02:57:11PM +0100, Jonathan Borne wrote:
> 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?

Yes, I think that's fine, thanks.


-- 
ldv


More information about the Strace-devel mailing list