[Bug 273354] x11/libinput: fails to build on stable/14

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 26 Aug 2023 14:03:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273354

Guido Falsi <madpilot@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |madpilot@FreeBSD.org

--- Comment #3 from Guido Falsi <madpilot@FreeBSD.org> ---
(In reply to Kenneth Raplee from comment #2)

I've seen this with recent head (post 15). I've fixed in an almost identical
way (I used a different name)

I noticed this is caused by the addition of /usr/include/sys/timerfd.h in
https://cgit.freebsd.org/src/commit/?id=af93fea710385b2b11f0cabd377e7ed6f3d97c34

libinput includes this file, but the new file causes /usr/include/sys/param.h
to also be included, that defines NOFILE, producing this error.

Since that NOFILE definition is local to that source file, I think this is the
correct fix.

I'm posting a patch shortly to help the maintainer.

-- 
You are receiving this mail because:
You are the assignee for the bug.