summaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-01-14 05:44:03 (GMT)
committerGitHub <noreply@github.com>2017-01-14 05:44:03 (GMT)
commit8f1523abea5aee8c648529910a94a33683a96a4a (patch)
treee9631de939785e8998faedf3eb26560b6ee0011c /kconfig
parentcbb045ab333df1047a6a9851c19c4b0b61442011 (diff)
parent3bb2bcd2a328fb56332398783e91899ce3bc3556 (diff)
Merge pull request #529 from stilor/gperf-3.1-fix
Add a check for gperf function signature.
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/Makefile3
-rw-r--r--kconfig/zconf.gperf2
2 files changed, 3 insertions, 2 deletions
diff --git a/kconfig/Makefile b/kconfig/Makefile
index 9f30566..ee838aa 100644
--- a/kconfig/Makefile
+++ b/kconfig/Makefile
@@ -6,7 +6,8 @@ all: conf mconf nconf
@true # Just be silent, you fscking son of a fscking beach...
# Build flags
-CFLAGS = -DCONFIG_=\"CT_\" -DPACKAGE="\"crosstool-NG $(VERSION)\""
+CFLAGS = -DCONFIG_=\"CT_\" -DPACKAGE="\"crosstool-NG $(VERSION)\"" \
+ -DGPERF_LEN_TYPE="$(gperf_len_type)"
LDFLAGS = $(INTL_LIBS)
# Compiler flags to use gettext
diff --git a/kconfig/zconf.gperf b/kconfig/zconf.gperf
index ac498f0..434483b 100644
--- a/kconfig/zconf.gperf
+++ b/kconfig/zconf.gperf
@@ -9,7 +9,7 @@
struct kconf_id;
-static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
+static const struct kconf_id *kconf_id_lookup(register const char *str, register GPERF_LEN_TYPE len);
%%
mainmenu, T_MAINMENU, TF_COMMAND