diff --git a/cpu/native/Makefile.features b/cpu/native/Makefile.features index 8555bac1e9e2c..78046aacf9da1 100644 --- a/cpu/native/Makefile.features +++ b/cpu/native/Makefile.features @@ -4,6 +4,6 @@ FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_pm FEATURES_PROVIDED += periph_pwm # Hardware SPI access is only available on Linux hosts -ifeq ($(shell uname -s),Linux) +ifeq ($(OS),Linux) FEATURES_PROVIDED += periph_spi -endif \ No newline at end of file +endif diff --git a/cpu/native/include/spidev_linux.h b/cpu/native/include/spidev_linux.h index 72e0653772808..02acc6408fcf1 100644 --- a/cpu/native/include/spidev_linux.h +++ b/cpu/native/include/spidev_linux.h @@ -119,7 +119,6 @@ int spidev_linux_setup(spi_t bus, spi_cs_t cs, const char *name); */ void spidev_linux_teardown(void); - #ifdef __cplusplus } #endif