mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
ng_source(4): correction after the change r340617
tv_usec has "long" type for all architecture in FreeBSD and follows __LP64__. However, this is not true for tv_sec that has "time_t" type. Since r320347 that changed time_t from 32 to 64 bit integer for 32 bit version of powerpc architecture, we have only single i386 architecture having 32 bit time_t type. Submitted by: jhb MFC after: 1 week.
This commit is contained in:
parent
d900ade516
commit
f8edc37316
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341006
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue