summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-22 21:56:57 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-22 21:56:57 +0200
commit8e7218c45941c9f6263348e8eadf6075d0671832 (patch)
treed2b146f2569db12a54356c19be213616f3e6a995
parent3b3a506f57a397d83db361be35189c591bff10fb (diff)
downloadvim-git-8e7218c45941c9f6263348e8eadf6075d0671832.tar.gz
patch 8.1.0319: bzero() function prototype doesn't work for Androidv8.1.0319
Problem: bzero() function prototype doesn't work for Android. Solution: Add an #ifdef. (Elliott Hughes, closes #3365)
-rw-r--r--src/osdef1.h.in4
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/osdef1.h.in b/src/osdef1.h.in
index 5519104c9..825fe94d3 100644
--- a/src/osdef1.h.in
+++ b/src/osdef1.h.in
@@ -65,8 +65,10 @@ extern void memmove(char *, char *, int);
# endif
# endif
#endif
-/* used inside of FD_ZERO macro: */
+#ifndef __BIONIC__ // Android's libc #defines bzero to memset.
+// used inside of FD_ZERO macro
extern void bzero(void *, size_t);
+#endif
#ifdef HAVE_SETSID
extern pid_t setsid(void);
#endif
diff --git a/src/version.c b/src/version.c
index 1afe230cf..0c3f87c08 100644
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 319,
+/**/
318,
/**/
317,