Skip to content
Snippets Groups Projects
flashrom-1.2-fix-includes.patch 956 B
Newer Older
diff -Nurd flashrom-v1.2/ft2232_spi.c flashrom-v1.2.new/ft2232_spi.c
--- flashrom-v1.2/ft2232_spi.c	2019-12-01 22:23:08.000000000 +0000
+++ flashrom-v1.2.new/ft2232_spi.c	2022-06-16 00:11:20.395487303 +0000
@@ -24,7 +24,7 @@
 #include "flash.h"
 #include "programmer.h"
 #include "spi.h"
-#include <ftdi.h>
+#include <libftdi1/ftdi.h>

 /* This is not defined in libftdi.h <0.20 (c7e4c09e68cfa6f5e112334aa1b3bb23401c8dc7 to be exact).
  * Some tests indicate that his is the only change that it is needed to support the FT232H in flashrom. */
diff -Nurd flashrom-v1.2/usbblaster_spi.c flashrom-v1.2.new/usbblaster_spi.c
--- flashrom-v1.2/usbblaster_spi.c	2019-11-14 22:47:32.000000000 +0000
+++ flashrom-v1.2.new/usbblaster_spi.c	2022-06-16 00:11:20.448820276 +0000
@@ -36,7 +36,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <ftdi.h>
+#include <libftdi1/ftdi.h>
 #include "flash.h"
 #include "programmer.h"
 #include "spi.h"