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/osdef1.h.in | |
parent | 3b3a506f57a397d83db361be35189c591bff10fb (diff) | |
download | vim-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)
Diffstat (limited to 'src/osdef1.h.in')
-rw-r--r-- | src/osdef1.h.in | 4 |
1 files changed, 3 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 |