svn commit: r343022 - stable/11/sys/netgraph
Eugene Grosbein
eugen at FreeBSD.org
Mon Jan 14 09:57:37 UTC 2019
Author: eugen
Date: Mon Jan 14 09:57:36 2019
New Revision: 343022
URL: https://svnweb.freebsd.org/changeset/base/343022
Log:
MFC r340617,341006: unbreak ng_source(4) for 64-bit platforms
Modified:
stable/11/sys/netgraph/ng_source.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netgraph/ng_source.c
==============================================================================
--- stable/11/sys/netgraph/ng_source.c Mon Jan 14 09:54:53 2019 (r343021)
+++ stable/11/sys/netgraph/ng_source.c Mon Jan 14 09:57:36 2019 (r343022)
@@ -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-stable
mailing list