summarylogtreecommitdiffstats
path: root/in_word_set.patch
diff options
context:
space:
mode:
authorfelix2017-08-01 17:54:09 +0200
committerfelix2017-08-01 17:54:30 +0200
commit21b4d68010d0d1a394bc9498b68affd16f924523 (patch)
treea83fdeed6f16d219b87dd0f90b5eb7b1a6bb386c /in_word_set.patch
parentaa4fdd92d2915feb962f8f168f04a8e13eb57856 (diff)
downloadaur-21b4d68010d0d1a394bc9498b68affd16f924523.tar.gz
Fix build failure with latest gperf
Diffstat (limited to 'in_word_set.patch')
-rw-r--r--in_word_set.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/in_word_set.patch b/in_word_set.patch
new file mode 100644
index 00000000000..6a127ef076b
--- /dev/null
+++ b/in_word_set.patch
@@ -0,0 +1,26 @@
+Index: flasm/src/keywords.gperf
+===================================================================
+--- src/keywords.gperf
++++ src/keywords.gperf
+@@ -11,7 +11,7 @@ All rights reserved. See LICENSE.TXT for
+ #ifdef MEMWATCH
+ #include "memwatch.h"
+ #endif
+-struct keyword *in_word_set(register const char *str, register unsigned int len);
++struct keyword *in_word_set(register const char *str, register size_t len);
+ %}
+ struct keyword {}
+ %%
+Index: flasm/src/util.h
+===================================================================
+--- src/util.h
++++ src/util.h
+@@ -47,7 +47,7 @@ struct keyword {
+ int token;
+ };
+
+-extern struct keyword *in_word_set(register const char *str, register unsigned int len);
++extern struct keyword *in_word_set(register const char *str, register size_t len);
+
+ void checkByteOrder(void);
+ int longintCompare(const void *ap, const void *bp);