Define MAXHOSTNAMELEN explicitly in source files.

Bug: 19093777
Bug: 19092844
Change-Id: I0778507ca2d5c008abb9a6d6315d0909263a8817
This commit is contained in:
Yabin Cui
2015-02-09 13:58:28 -08:00
parent a4fc89badf
commit 2d8f9b5aea
5 changed files with 12 additions and 9 deletions

View File

@@ -118,10 +118,8 @@ kernel_known_statics = {
# the generated files.
#
kernel_ignored_macros = set(
[ "MAXHOSTNAMELEN", # for some reason, Linux defines it to 64
# while most of the BSD code expects this to be 256
# so ignore the kernel-provided definition and
# define it in the Bionic headers instead
[
]
)

View File

@@ -29,5 +29,6 @@
#ifndef NOGROUP
#define NOGROUP (- 1)
#endif
#endif
#define MAXHOSTNAMELEN 64
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#endif