<div dir="ltr">Hi there Kamil,<div><br></div><div>After some coordination with the FreeBSD graphics team, I decided</div><div>to remove the freebsd-uapi sync_file.h include. The file that I submitted</div><div>in a previous patch is simply a copy of the linux-uapi sync_file.h with</div><div>minor modifications to compile successfully. It turns out that FreeBSD</div><div>does not have a comparable fencing uapi making the freebsd-uapi</div><div>sync_file.h technically improper.</div><div><br></div><div>This patch introduces the '/usr/local/include' include dir on FreeBSD systems.</div><div>I will return back to the freebsd-uapi sync file when I have a proper solution.</div><div><br></div><div>Thank you,</div><div>Jake Freeland</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022 at 3:00 AM Kamil Konieczny <<a href="mailto:kamil.konieczny@linux.intel.com">kamil.konieczny@linux.intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jake,<br>
<br>
On 2022-10-16 at 12:27:25 -0500, Jake Freeland wrote:<br>
> Use meson's host_machine.system() to detect the target operating<br>
> system. If the target is FreeBSD, add /usr/local/include to the<br>
> include dirs.<br>
<br>
Put here also note about change from linux-uapi to freebsd-uapi.<br>
<br>
> <br>
> Signed-off-by: Jake Freeland <<a href="mailto:jfree@freebsd.org" target="_blank">jfree@freebsd.org</a>><br>
> ---<br>
> meson.build | 5 +++++<br>
> 1 file changed, 5 insertions(+)<br>
> <br>
> diff --git a/meson.build b/meson.build<br>
> index 3e937f5a..896efbf8 100644<br>
> --- a/meson.build<br>
> +++ b/meson.build<br>
> @@ -86,7 +86,12 @@ with_libdrm = get_option('libdrm_drivers')<br>
> <br>
> build_info = ['Build type: ' + get_option('buildtype')]<br>
> <br>
> +system = host_machine.system()<br>
> +if system == 'linux'<br>
> inc = include_directories('include/drm-uapi', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.')<br>
> +elif system == 'freebsd'<br>
> +inc = include_directories('include/drm-uapi', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.', '/usr/local/include')<br>
--------------------------------------------------------- ^<br>
freebsd-uapi<br>
<br>
Regards,<br>
Kamil<br>
<br>
> +endif<br>
> <br>
> inc_for_gtkdoc = include_directories('lib')<br>
> <br>
> -- <br>
> 2.37.3<br>
> <br>
</blockquote></div>