examples: include endian.h for be16toh and le16toh declarations
this gets exposed on musl, on glibc endian.h gets pulled in indirectly Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
eda9d03547
commit
c9566bdc6f
@@ -27,6 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* standard headers */
|
/* standard headers */
|
||||||
|
#include <endian.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
/* standard headers */
|
/* standard headers */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <endian.h>
|
||||||
|
|
||||||
/* mraa header */
|
/* mraa header */
|
||||||
#include "mraa/iio.h"
|
#include "mraa/iio.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user