Skip to content
Commit dfed5e18 authored by Alan Coopersmith's avatar Alan Coopersmith Committed by Emil Velikov
Browse files

include <sys/types.h> & <sys/mkdev.h> directly for major() and minor()



Linux seems to pick these up via another header, but Solaris needs them
explicitly included, or we get undefined symbol errors for major & minor.

v2: use headers documented in makedev(3C) man page instead of sysmacros.h

Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>

v3 [Emil Velikov]: include sys/mkdev.h only when available.
Signed-off-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
parent fc8c3e23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment