--- flashrom-0.9.9/spi.c.orig	2017-07-16 14:56:35.786503889 +0300
+++ flashrom-0.9.9/spi.c	2017-07-16 14:58:31.698126720 +0300
@@ -22,6 +22,7 @@
  * Contains the generic SPI framework
  */
 
+#define _BSD_SOURCE
 #include <strings.h>
 #include <string.h>
 #include "flash.h"