From 1ca6bef2877ed4757710494fdd41823fe7122b09 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 20 Dec 2017 00:42:16 +0100 Subject: spi: Define _XOPEN_SOURCE to get ffs() from strings.h Fixes build with Musl libc. Change-Id: I92b69300a302c4491e234666ac371027571801c9 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/22951 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: David Hendricks --- spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spi.c b/spi.c index 894f73f60..c306ac351 100644 --- a/spi.c +++ b/spi.c @@ -22,6 +22,8 @@ * Contains the generic SPI framework */ +#define _XOPEN_SOURCE 700 /* for ffs() */ + #include #include #include "flash.h" -- cgit v1.2.3