Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 6a6b705ff5cba960c54bdb4d4bcdaa3b00a854a2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 11 Aug 2018 10:24:24 -0700 |
| 4 | Subject: [PATCH] pi-blaster: Include sys/sysmacros.h for makedev() |
| 5 | |
| 6 | In glibc 2.28+ this header is not included indirectly anymore |
| 7 | |
| 8 | fixes |
| 9 | |
| 10 | ld: pi-blaster.o: in function `mbox_open': |
| 11 | pi-blaster.c:(.text+0x28): undefined reference to `makedev' |
| 12 | collect2: error: ld returned 1 exit status |
| 13 | |
| 14 | Upstream-Status: Submitted [https://github.com/sarfata/pi-blaster/pull/100] |
| 15 | |
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 17 | --- |
| 18 | pi-blaster.c | 1 + |
| 19 | 1 file changed, 1 insertion(+) |
| 20 | |
| 21 | diff --git a/pi-blaster.c b/pi-blaster.c |
| 22 | index 6cfd010..fc4e686 100644 |
| 23 | --- a/pi-blaster.c |
| 24 | +++ b/pi-blaster.c |
| 25 | @@ -41,6 +41,7 @@ static char VERSION[] = "SNAPSHOT"; |
| 26 | #include <sys/time.h> |
| 27 | #include <sys/types.h> |
| 28 | #include <sys/stat.h> |
| 29 | +#include <sys/sysmacros.h> |
| 30 | #include <fcntl.h> |
| 31 | #include <sys/mman.h> |
| 32 | #include "mailbox.h" |