svn commit: r343021 - stable/12/sys/netgraph

Eugene Grosbein eugen at FreeBSD.org
Mon Jan 14 09:54:54 UTC 2019


Author: eugen
Date: Mon Jan 14 09:54:53 2019
New Revision: 343021
URL: https://svnweb.freebsd.org/changeset/base/343021

Log:
  MFC r340617,341006: unbreak ng_source(4) for 64-bit platforms

Modified:
  stable/12/sys/netgraph/ng_source.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netgraph/ng_source.c
==============================================================================
--- stable/12/sys/netgraph/ng_source.c	Mon Jan 14 08:23:47 2019	(r343020)
+++ stable/12/sys/netgraph/ng_source.c	Mon Jan 14 09:54:53 2019	(r343021)
@@ -125,8 +125,16 @@ 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 __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_usec",		&ng_parse_int32_type	},
+#endif
 	{ NULL }
 };
 const struct ng_parse_type ng_source_timeval_type = {


More information about the svn-src-all mailing list