summaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_source.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_source.c')
-rw-r--r--sys/netgraph/ng_source.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c
index ea341b6ce7c1..a82982db943f 100644
--- a/sys/netgraph/ng_source.c
+++ b/sys/netgraph/ng_source.c
@@ -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 = {