diff options
author | Alexey Neyman <stilor@att.net> | 2017-01-12 17:35:35 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-01-12 23:00:34 -0800 |
commit | 3bb2bcd2a328fb56332398783e91899ce3bc3556 (patch) | |
tree | 723fb2fe467e083cc4d43ae6fa413c8dc1a59f09 /kconfig | |
parent | dc9dac222045e68aeae5cfbbe04f2764afc33e46 (diff) | |
download | crosstool-ng-3bb2bcd2a328fb56332398783e91899ce3bc3556.tar.gz crosstool-ng-3bb2bcd2a328fb56332398783e91899ce3bc3556.tar.bz2 crosstool-ng-3bb2bcd2a328fb56332398783e91899ce3bc3556.zip |
Add a check for gperf function signature.
Loosely based on:
https://github.com/systemd/systemd/commit/c9f7b4d356a453a01aa77a6bb74ca7ef49732c08
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'kconfig')
-rw-r--r-- | kconfig/Makefile | 3 | ||||
-rw-r--r-- | kconfig/zconf.gperf | 2 |
2 files changed, 3 insertions, 2 deletions
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 |