1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 22:52:34 +02:00

spi: Define _XOPEN_SOURCE to get ffs() from strings.h

Fixes build with Musl libc.

Change-Id: I92b69300a302c4491e234666ac371027571801c9
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/22951
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
Nico Huber 2017-12-20 00:42:16 +01:00
parent a51a1923e5
commit 1ca6bef287

2
spi.c
View File

@ -22,6 +22,8 @@
* Contains the generic SPI framework
*/
#define _XOPEN_SOURCE 700 /* for ffs() */
#include <strings.h>
#include <string.h>
#include "flash.h"