Used <sys/mkdev.h> instead of <sys/sysmacros.h> on OpenIndiana

On Solaris/OpenIndiana, use the macroes makedev(), major() and minor()
from <sys/mkdev.h>. Those from <sys/sysmacros.h> are inappropriate for
current builds.
This commit is contained in:
Jean-Pierre André 2016-05-04 10:03:39 +02:00
parent 040153adcb
commit 34f7bd7ff0

View File

@ -40,9 +40,15 @@
#include <sys/stat.h>
#endif
#if defined(__sun) && defined (__SVR4)
#ifdef HAVE_SYS_MKDEV_H
#include <sys/mkdev.h>
#endif
#else /* defined(__sun) && defined (__SVR4) */
#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif
#endif /* defined(__sun) && defined (__SVR4) */
#include "param.h"
#include "types.h"