mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
include sys/types.h for uint definition
uint is defined in sys/types.h, therefore this header needs to be included, it gets exposed with musl where this header is not getting included indirectly as it is happening when building on glibc Fixes build errors on musl e.g. upm/src/kx122/kx122.hpp:456:31: error: 'uint' has not been declared | void setBufferThreshold(uint samples); | ^~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
d143e5d8b5
commit
48a580bd40
@ -31,6 +31,7 @@ extern "C"{
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <mraa/i2c.h>
|
||||
#include <mraa/spi.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user