diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-22 21:56:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-22 21:56:57 +0200 |
commit | 8e7218c45941c9f6263348e8eadf6075d0671832 (patch) | |
tree | d2b146f2569db12a54356c19be213616f3e6a995 /src | |
parent | 3b3a506f57a397d83db361be35189c591bff10fb (diff) |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/osdef1.h.in | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/osdef1.h.in b/src/osdef1.h.in index 5519104c93..825fe94d36 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 1afe230cfb..0c3f87c080 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, |