From 3bb2bcd2a328fb56332398783e91899ce3bc3556 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 12 Jan 2017 17:35:35 -0800 Subject: Add a check for gperf function signature. Loosely based on: https://github.com/systemd/systemd/commit/c9f7b4d356a453a01aa77a6bb74ca7ef49732c08 Signed-off-by: Alexey Neyman --- kconfig/Makefile | 3 ++- kconfig/zconf.gperf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'kconfig') diff --git a/kconfig/Makefile b/kconfig/Makefile index 9f30566a..ee838aa3 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 ac498f01..434483b3 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 -- cgit v1.2.3