diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c index a82982db943f..da8f42381ac3 100644 --- a/sys/netgraph/ng_source.c +++ b/sys/netgraph/ng_source.c @@ -125,11 +125,14 @@ 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__ +#ifdef __i386__ + { "tv_sec", &ng_parse_int32_type }, +#else { "tv_sec", &ng_parse_int64_type }, +#endif +#ifdef __LP64__ { "tv_usec", &ng_parse_int64_type }, #else - { "tv_sec", &ng_parse_int32_type }, { "tv_usec", &ng_parse_int32_type }, #endif { NULL }