Merge "Define MAXHOSTNAMELEN explicitly in source files."
This commit is contained in:
commit
ee17e88004
@ -63,6 +63,13 @@
|
|||||||
/* Despite this file's name, it's part of libresolv. On Android, that means it's part of libc :-( */
|
/* Despite this file's name, it's part of libresolv. On Android, that means it's part of libc :-( */
|
||||||
#pragma GCC visibility push(default)
|
#pragma GCC visibility push(default)
|
||||||
|
|
||||||
|
// Linux defines MAXHOSTNAMELEN as 64, while the domain name limit in
|
||||||
|
// RFC 1034 and RFC 1035 is 255 octets.
|
||||||
|
#ifdef MAXHOSTNAMELEN
|
||||||
|
#undef MAXHOSTNAMELEN
|
||||||
|
#endif
|
||||||
|
#define MAXHOSTNAMELEN 256
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Revision information. This is the release date in YYYYMMDD format.
|
* Revision information. This is the release date in YYYYMMDD format.
|
||||||
* It can change every day so the right thing to do with it is use it
|
* It can change every day so the right thing to do with it is use it
|
||||||
|
@ -73,9 +73,6 @@
|
|||||||
#define _PATH_PROTOCOLS "/system/etc/protocols"
|
#define _PATH_PROTOCOLS "/system/etc/protocols"
|
||||||
#define _PATH_SERVICES "/system/etc/services"
|
#define _PATH_SERVICES "/system/etc/services"
|
||||||
|
|
||||||
#define MAXHOSTNAMELEN 256
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structures returned by network data base library. All addresses are
|
* Structures returned by network data base library. All addresses are
|
||||||
* supplied in host order, and returned in network order (suitable for
|
* supplied in host order, and returned in network order (suitable for
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
#define _SYS_PARAM_H_
|
#define _SYS_PARAM_H_
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <linux/param.h>
|
||||||
|
|
||||||
#define HZ 100
|
|
||||||
#define MAXPATHLEN PATH_MAX
|
#define MAXPATHLEN PATH_MAX
|
||||||
#define MAXSYMLINKS 8
|
#define MAXSYMLINKS 8
|
||||||
|
|
||||||
|
@ -118,10 +118,8 @@ kernel_known_statics = {
|
|||||||
# the generated files.
|
# the generated files.
|
||||||
#
|
#
|
||||||
kernel_ignored_macros = set(
|
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
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -29,5 +29,6 @@
|
|||||||
#ifndef NOGROUP
|
#ifndef NOGROUP
|
||||||
#define NOGROUP (- 1)
|
#define NOGROUP (- 1)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#define MAXHOSTNAMELEN 64
|
||||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user