Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 06edd88833da93361d5408b880fbb890df332497 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 19 Jan 2016 01:55:47 +0000 |
| 4 | Subject: [PATCH] fbset: including asm/types.h is needed on all linux systems |
| 5 | |
| 6 | including asm/types.h is needed to get Linux typedef's like |
| 7 | __s32 and so on which are independent of C library therefore this |
| 8 | define should not be guarded by __GLIBC__ but by __linux__ |
| 9 | |
| 10 | Helps to compile it on musl systems |
| 11 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | Upstream-Status: Pending |
| 15 | |
| 16 | fbset.h | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/fbset.h b/fbset.h |
| 20 | index 9b1d2ac..0d8def8 100644 |
| 21 | --- a/fbset.h |
| 22 | +++ b/fbset.h |
| 23 | @@ -15,7 +15,7 @@ |
| 24 | #include <stdio.h> |
| 25 | #include <sys/types.h> |
| 26 | |
| 27 | -#ifdef __GLIBC__ |
| 28 | +#ifdef __linux__ |
| 29 | #include <asm/types.h> |
| 30 | #endif |
| 31 | |
| 32 | -- |
| 33 | 2.7.0 |
| 34 | |