Re: [PATCH v2] build: Use AC_HEADER_MAJOR to find device macros

2016-04-18 Thread Mike Gilbert
On Sun, Apr 17, 2016 at 2:27 PM, Mike Gilbert wrote: > Depending on the OS/libc, device macros are defined in different > headers. > > sys/mkdev.h - BSD, Sun > sys/sysmacros.h - glibc (Linux) It seems I was wrong about BSD; it is defined directly in sys/types.h on FreeBSD at least. https://svnwe

Re: [PATCH v2] build: Use AC_HEADER_MAJOR to find device macros

2016-04-17 Thread Vladimir 'phcoder' Serbinenko
Looks good to me. If Andrei is fine with it, I'll let him commit Le Mon, Apr 18, 2016 à 4:28 AM, Mike Gilbert a écrit : > Depending on the OS/libc, device macros are defined in different > headers. > > sys/mkdev.h - BSD, Sun > sys/sysmacros.h - glibc (Linux) > > glibc currently pulls sys/sysmacr

[PATCH v2] build: Use AC_HEADER_MAJOR to find device macros

2016-04-17 Thread Mike Gilbert
Depending on the OS/libc, device macros are defined in different headers. sys/mkdev.h - BSD, Sun sys/sysmacros.h - glibc (Linux) glibc currently pulls sys/sysmacros.h into sys/types.h, but this may change in a future release. https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html --- config