Mercurial > vim
diff src/osdef1.h.in @ 14611:937c80935bc0 v8.1.0319
patch 8.1.0319: bzero() function prototype doesn't work for Android
commit https://github.com/vim/vim/commit/8e7218c45941c9f6263348e8eadf6075d0671832
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 22 21:56:57 2018 +0200
patch 8.1.0319: bzero() function prototype doesn't work for Android
Problem: bzero() function prototype doesn't work for Android.
Solution: Add an #ifdef. (Elliott Hughes, closes https://github.com/vim/vim/issues/3365)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 22 Aug 2018 22:00:07 +0200 |
parents | 37a441352da2 |
children | 22f0dda71638 |
line wrap: on
line diff
--- 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