blob: 12f5be981b5e3d4c141c39de9e02673b807ffffa [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 2f39dc3d6f920c0826aa74367da1a0a7cc49b0fe Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 11 Aug 2018 15:18:04 -0700
4Subject: [PATCH] include sys/sysmacros.h for major/minor definitions
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
10This means that in a future release, the macros major”, minor”, and
11makedev will only be available from <sys/sysmacros.h>.
12
13Upstream-Status: Pending
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 src/lockdev.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/src/lockdev.c b/src/lockdev.c
20index 9a0fca5..3581938 100644
21--- a/src/lockdev.c
22+++ b/src/lockdev.c
23@@ -117,6 +117,7 @@
24 #include <sys/stat.h>
25 #include <sys/file.h>
26 #include <sys/types.h>
27+#include <sys/sysmacros.h>
28 #include <sys/wait.h>
29 #include "lockdev.h"
30 #include "ttylock.h"