summaryrefslogtreecommitdiff
path: root/app-text/lv/files/lv-4.51-protos.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/lv/files/lv-4.51-protos.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/lv/files/lv-4.51-protos.patch')
-rw-r--r--app-text/lv/files/lv-4.51-protos.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-text/lv/files/lv-4.51-protos.patch b/app-text/lv/files/lv-4.51-protos.patch
new file mode 100644
index 000000000000..602ef5f6117f
--- /dev/null
+++ b/app-text/lv/files/lv-4.51-protos.patch
@@ -0,0 +1,29 @@
+Add missing string protos.
+
+ * src/guess.c:150:12: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
+ * src/guess.c:218:22: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
+ * src/guesslocale.c:42:9: warning: implicit declaration of function ‘toupper’ [-Wimplicit-function-declaration]
+diff --git a/src/guess.c b/src/guess.c
+index facd95e..555acd3 100644
+--- a/src/guess.c
++++ b/src/guess.c
+@@ -21,6 +21,7 @@
+ */
+
+ #include <stdio.h>
++#include <string.h> /* strcmp */
+
+ #include <import.h>
+ #include <decode.h>
+diff --git a/src/guesslocale.c b/src/guesslocale.c
+index 7974c88..c259723 100644
+--- a/src/guesslocale.c
++++ b/src/guesslocale.c
+@@ -29,6 +29,7 @@
+ #include <langinfo.h>
+ #endif
+
++#include <ctype.h> /* toupper */
+ #include <import.h>
+ #include <ctable.h>
+ #include <begin.h>