aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mraa/mraa/0001-examples-iio_driver.c-include-endian.h-to-fix-musl-b.patch
blob: 401949e2ec392b7e5d79df6df62ad66980dbb690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 6c2649718fc9818da0d602a0b4767ea21a367e9e Mon Sep 17 00:00:00 2001
From: Tim Orling <timothy.t.orling@linux.intel.com>
Date: Sat, 27 Jan 2018 02:06:36 -0800
Subject: [PATCH] examples/iio_driver.c: include endian.h to fix musl build

* be16toh and le16toh are defined in endian.h

Upstream-Status: Pending

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
---
 examples/iio_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/iio_driver.c b/examples/iio_driver.c
index c5a0181..e3dc438 100644
--- a/examples/iio_driver.c
+++ b/examples/iio_driver.c
@@ -23,6 +23,7 @@
  */
 
 #include <unistd.h>
+#include <endian.h>
 #include "mraa/iio.h"
 
 static void
-- 
2.13.6