Re: [PATCH libdrm] libdrm: enclose __FreeBSD__ behind a define

2020-05-20 Thread Emmanuel Vadot
On Tue, 19 May 2020 12:04:58 -0700 Carlos Santa wrote: > Not doing the above can cause compilation errors on > platforms that don't define it. > > [1/25] Compiling C object 'drm@sha/xf86drm.c.o. > FAILED: drm@sha/xf86drm.c.o > ../xf86drm.c: In function 'drmGetMinorNameForFD': > ../xf86drm.c:2938

[PATCH libdrm] libdrm: enclose __FreeBSD__ behind a define

2020-05-19 Thread Carlos Santa
Not doing the above can cause compilation errors on platforms that don't define it. [1/25] Compiling C object 'drm@sha/xf86drm.c.o. FAILED: drm@sha/xf86drm.c.o ../xf86drm.c: In function 'drmGetMinorNameForFD': ../xf86drm.c:2938:7: error: "__FreeBSD__" is not defined [-Werror=undef] #elif __FreeBS