bionic: fix gcc build
The memset() prototype from glibc includes __THROW and __nonnull as decorators, which are nonstandard. Remove these for additional compatibility with gcc. Additionally, remove linux/types.h and linux/string.h, and replace them with sys/types.h and sys/string.h.
This commit is contained in:
parent
e948d27bb0
commit
eba08f0218
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ char * _strpbrk(const char *s1, const char *s2);
|
|||
char *_strtok(char *str, const char *delim, char **saveptr);
|
||||
int _strcasecmp(const char *s1, const char *s2);
|
||||
void *_memcpy(void *dst0, const void *src0, size_t length);
|
||||
void *memset(void *__s, int __c, size_t __n) __THROW __nonnull ((1));
|
||||
void *memset(void *__s, int __c, size_t __n);
|
||||
unsigned long strtoul(const char *nptr, char **endptr, unsigned int base);
|
||||
int _strlen(const char *s);
|
||||
int _strnlen(const char *s, uint32_t maxlen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue