string.h: drag in <strings.h> for GNU source as well as BSD.
Both glibc/musl's and Apple's <string.h> drags in <strings.h> in most cases. So do the BSDs. Given so much historic precedent (often accompanied by comments saying "POSIX made us move this stuff out into another file, but we don't want to break existing code [from the 1980s]"!), plus the fact that someone hit this in practice, trying to build one of the linux selftests against bionic, let's change bionic over too... Bug: http://b/310035365 Test: treehugger Change-Id: I8f13d82fe3d3df71a656641a725410acdfd97465
This commit is contained in:
parent
0b27d314d6
commit
c5d9795cf4
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
#if defined(__USE_BSD)
|
#if defined(__USE_BSD) || defined(__USE_GNU)
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue