diff -uprN a/linux_spi.c b/linux_spi.c
--- a/linux_spi.c	2015-06-17 20:50:36.492963100 +0200
+++ b/linux_spi.c	2015-06-17 20:50:00.444860800 +0200
@@ -22,7 +22,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <errno.h>
 #include <ctype.h>
 #include <unistd.h>
