summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/priority_options.gperf1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 9cab0796fa..0bc6c3c2bf 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -215,5 +215,5 @@ gnutls_asn1_tab.c: $(srcdir)/gnutls.asn
-asn1Parser $(srcdir)/gnutls.asn gnutls_asn1_tab.c
priority_options.h: $(srcdir)/priority_options.gperf
- -gperf -t $^ > $@-tmp && mv $@-tmp $@
+ -gperf --global-table -t $^ > $@-tmp && sed -i 's/^const struct priority_options_st \*/static const struct priority_options_st \*/' $@-tmp && mv $@-tmp $@
diff --git a/lib/priority_options.gperf b/lib/priority_options.gperf
index 79f3f7d211..b7d9b8fdee 100644
--- a/lib/priority_options.gperf
+++ b/lib/priority_options.gperf
@@ -1,6 +1,5 @@
%{
typedef void (*option_set_func)(gnutls_priority_t);
-static const struct priority_options_st *in_word_set(register const char *str, register unsigned int len);
%}
%language=ANSI-C
%readonly-tables