Pádraig Brady wrote in
> I suggested a makedev gnulib module in the thread above
> as it's not just the headers that are varying,
> as also some systems use mkdev() and some makedev().
I agree that gnulib is a good place to handle this. Some more info:
Platforms that have makedev as a function: none.
Platforms that have makedev as a macro:
in <sys/mkdev.h>: glibc, IRIX, Solaris, Interix
in <sys/sysmacros.h>: AIX, BeOS, Cygwin, HP-UX, IRIX, Solaris
in <sys/types.h>: FreeBSD, NetBSD, OpenBSD, Mac OS X, Minix, OSF/1
Platforms that have mkdev as a function: none
Platforms that have mkdev as a macro:
in <sys/mkdev.h>: Interix