From c710a3accd1fabdb671274e1a458405282d51e0c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 6 Aug 2018 15:38:58 -0700
Subject: [PATCH] include sys/sysmacros.h for major/minor definitions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending

---
 src/bootlogd.c   | 1 +
 src/mountpoint.c | 1 +
 src/shutdown.c   | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/bootlogd.c b/src/bootlogd.c
index 787db87..8b07903 100644
--- a/src/bootlogd.c
+++ b/src/bootlogd.c
@@ -29,6 +29,7 @@
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/ioctl.h>
 #include <sys/utsname.h>
 #include <time.h>
diff --git a/src/mountpoint.c b/src/mountpoint.c
index 5f20522..94df7a1 100644
--- a/src/mountpoint.c
+++ b/src/mountpoint.c
@@ -25,6 +25,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/src/shutdown.c b/src/shutdown.c
index b744a2c..40b7faf 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -40,6 +40,7 @@
 #endif
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/wait.h>
 #ifdef __linux__
 #include <sys/sysmacros.h>   /* brought in my LFS patch */
