diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-02-15 18:48:37 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-02-15 23:29:33 +0400 |
commit | 9480e989cde467de6e7580deb264f36bf75790dd (patch) | |
tree | e543958466efee3d1316cee816a9b3ff36ddfd7d | |
parent | 5417902ea2700f87fcf58b54df7716d0c81cd51e (diff) | |
download | util-linux-9480e989cde467de6e7580deb264f36bf75790dd.tar.gz |
Need sys/sysmacros.h on illumos for major/minor
-rw-r--r-- | lib/sysfs.c | 5 | ||||
-rw-r--r-- | login-utils/sulogin-consoles.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c index 5203e63f..cae1c09d 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -6,6 +6,11 @@ */ #include <ctype.h> +#ifdef __sun__ +#warning port to illumos /devices +#include <sys/sysmacros.h> +#endif + #include "c.h" #include "at.h" #include "pathnames.h" diff --git a/login-utils/sulogin-consoles.c b/login-utils/sulogin-consoles.c index 6ceea6ba..266d8b22 100644 --- a/login-utils/sulogin-consoles.c +++ b/login-utils/sulogin-consoles.c @@ -36,6 +36,9 @@ # include <linux/serial.h> # include <linux/major.h> #endif +#ifdef __sun__ +#include <sys/sysmacros.h> +#endif #include <fcntl.h> #include <dirent.h> #include <unistd.h> |