Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 2f39dc3d6f920c0826aa74367da1a0a7cc49b0fe Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 11 Aug 2018 15:18:04 -0700 |
| 4 | Subject: [PATCH] include sys/sysmacros.h for major/minor definitions |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated. |
| 10 | This means that in a future release, the macros “major”, “minor”, and |
| 11 | “makedev” will only be available from <sys/sysmacros.h>. |
| 12 | |
| 13 | Upstream-Status: Pending |
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 15 | --- |
| 16 | src/lockdev.c | 1 + |
| 17 | 1 file changed, 1 insertion(+) |
| 18 | |
| 19 | diff --git a/src/lockdev.c b/src/lockdev.c |
| 20 | index 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" |