Unbreak ng_source(4) for 64-bit platforms including amd64.
This commit is contained in:
parent
ef4e6c8fe8
commit
d642b94209
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340617
@ -125,8 +125,13 @@ static int ng_source_dup_mod(sc_p, struct mbuf *,
|
|||||||
|
|
||||||
/* Parse type for timeval */
|
/* Parse type for timeval */
|
||||||
static const struct ng_parse_struct_field ng_source_timeval_type_fields[] = {
|
static const struct ng_parse_struct_field ng_source_timeval_type_fields[] = {
|
||||||
|
#ifdef __LP64__
|
||||||
|
{ "tv_sec", &ng_parse_int64_type },
|
||||||
|
{ "tv_usec", &ng_parse_int64_type },
|
||||||
|
#else
|
||||||
{ "tv_sec", &ng_parse_int32_type },
|
{ "tv_sec", &ng_parse_int32_type },
|
||||||
{ "tv_usec", &ng_parse_int32_type },
|
{ "tv_usec", &ng_parse_int32_type },
|
||||||
|
#endif
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
const struct ng_parse_type ng_source_timeval_type = {
|
const struct ng_parse_type ng_source_timeval_type = {
|
||||||
|
Loading…
Reference in New Issue
Block a user