Author: eugen
Date: Mon Nov 19 07:27:50 2018
New Revision: 340617
URL: https://svnweb.freebsd.org/changeset/base/340617

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

Modified:
  head/sys/netgraph/ng_source.c

Modified: head/sys/netgraph/ng_source.c
==============================================================================
--- head/sys/netgraph/ng_source.c       Mon Nov 19 06:52:20 2018        
(r340616)
+++ head/sys/netgraph/ng_source.c       Mon Nov 19 07:27:50 2018        
(r340617)
@@ -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 = {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to