Unbreak ng_source(4) for 64-bit platforms including amd64.

This commit is contained in:
Eugene Grosbein 2018-11-19 07:27:50 +00:00
parent ef4e6c8fe8
commit d642b94209
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340617

View File

@ -125,8 +125,13 @@ static int ng_source_dup_mod(sc_p, struct mbuf *,
/* Parse type for timeval */
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_usec", &ng_parse_int32_type },
#endif
{ NULL }
};
const struct ng_parse_type ng_source_timeval_type = {