diff --git a/srcpkgs/flashrom/patches/spi-ioctl.patch b/srcpkgs/flashrom/patches/spi-ioctl.patch new file mode 100644 index 00000000000..9caf4187b64 --- /dev/null +++ b/srcpkgs/flashrom/patches/spi-ioctl.patch @@ -0,0 +1,33 @@ +--- linux_spi.c.orig ++++ linux_spi.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- linux_spi.c.orig ++++ linux_spi.c +@@ -22,7 +22,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +--- hwaccess.h.orig ++++ hwaccess.h +@@ -25,9 +25,7 @@ + #define __HWACCESS_H__ 1 + + #if IS_X86 +-#if defined(__GLIBC__) + #include +-#endif + #endif + + #if NEED_PCI == 1 diff --git a/srcpkgs/flashrom/template b/srcpkgs/flashrom/template index 6d7f6c40bea..e4c630d4221 100644 --- a/srcpkgs/flashrom/template +++ b/srcpkgs/flashrom/template @@ -15,6 +15,9 @@ post_extract() { sed -i "s:sbin:bin:g" Makefile } +do_configure() { + sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]') +} do_build() { make PREFIX=/usr ${makejobs} \ CONFIG_INTERNAL=no CONFIG_RAYER_SPI=no CONFIG_NIC3COM=no CONFIG_GFXNVIDIA=no CONFIG_SATASII=no \