blob: b4bc4b289a4878c22a6737f90c4086a159533761 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 6a6b705ff5cba960c54bdb4d4bcdaa3b00a854a2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 11 Aug 2018 10:24:24 -0700
4Subject: [PATCH] pi-blaster: Include sys/sysmacros.h for makedev()
5
6In glibc 2.28+ this header is not included indirectly anymore
7
8fixes
9
10ld: pi-blaster.o: in function `mbox_open':
11pi-blaster.c:(.text+0x28): undefined reference to `makedev'
12collect2: error: ld returned 1 exit status
13
14Upstream-Status: Submitted [https://github.com/sarfata/pi-blaster/pull/100]
15
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 pi-blaster.c | 1 +
19 1 file changed, 1 insertion(+)
20
21diff --git a/pi-blaster.c b/pi-blaster.c
22index 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"