Re: [PATCH libdrm] meson: Fix sys/mkdev.h detection on Solaris

2019-09-14 Thread Eric Engestrom
On Friday, 2019-09-13 16:26:55 -0700, Alan Coopersmith wrote: > On 9/10/19 5:55 AM, Eric Engestrom wrote: > > On Monday, 2019-09-09 16:51:16 -0700, Alan Coopersmith wrote: > > > On Solaris, sys/sysmacros.h has long-deprecated copies of major() & > > > minor() > > > but not makedev(). sys/mkdev.h

Re: [PATCH libdrm] meson: Fix sys/mkdev.h detection on Solaris

2019-09-13 Thread Alan Coopersmith
On 9/10/19 5:55 AM, Eric Engestrom wrote: On Monday, 2019-09-09 16:51:16 -0700, Alan Coopersmith wrote: On Solaris, sys/sysmacros.h has long-deprecated copies of major() & minor() but not makedev(). sys/mkdev.h has all three and is the preferred choice. So we check for sys/mkdev.h first, as

Re: [PATCH libdrm] meson: Fix sys/mkdev.h detection on Solaris

2019-09-10 Thread Eric Engestrom
On Monday, 2019-09-09 16:51:16 -0700, Alan Coopersmith wrote: > On Solaris, sys/sysmacros.h has long-deprecated copies of major() & minor() > but not makedev(). sys/mkdev.h has all three and is the preferred choice. > > So we check for sys/mkdev.h first, as autoconf's AC_HEADER_MAJOR does.

[PATCH libdrm] meson: Fix sys/mkdev.h detection on Solaris

2019-09-09 Thread Alan Coopersmith
On Solaris, sys/sysmacros.h has long-deprecated copies of major() & minor() but not makedev(). sys/mkdev.h has all three and is the preferred choice. So we check for sys/mkdev.h first, as autoconf's AC_HEADER_MAJOR does. Fixes build failure with error: ../xf86drm.c: In function ‘drmOpenMinor’: