Skip to content

Instantly share code, notes, and snippets.

View KamilSzczygiel's full-sized avatar

Kamil Szczygieł KamilSzczygiel

View GitHub Profile
@KamilSzczygiel
KamilSzczygiel / kconfig-frontends.patch
Created April 5, 2017 21:12
Patch for kconfig-frontends-3.12.0.0 that fixes build failure with gperf 3.1
diff -ruN kconfig-frontends-3.12.0.0/configure.ac kconfig-frontends-3.12.0.0-fixed/configure.ac
--- kconfig-frontends-3.12.0.0/configure.ac 2013-11-09 14:31:01.000000000 +0100
+++ kconfig-frontends-3.12.0.0-fixed/configure.ac 2017-04-05 22:44:36.140760000 +0200
@@ -238,6 +238,22 @@
AC_SUBST([AM_YFLAGS], ["-t -l -p zconf"])
#----------------------------------------
+# gperf 3.1 generates functions with 'size_t' instead of 'unsigned int'
+AC_MSG_CHECKING([for the type used in gperf declarations])
+echo "#include <string.h>" > conftest.gperf.c