Skip to content

Commit b0d4295

Browse files
committed
Put netbsd timex declaration into the proper section
1 parent 3a52058 commit b0d4295

File tree

1 file changed

+29
-28
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+29
-28
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,35 @@ s! {
312312
pub ll_host: [::c_char; UT_HOSTSIZE],
313313
pub ll_time: ::time_t
314314
}
315+
316+
pub struct timex {
317+
pub modes: ::c_uint,
318+
pub offset: ::c_long,
319+
pub freq: ::c_long,
320+
pub maxerror: ::c_long,
321+
pub esterror: ::c_long,
322+
pub status: ::c_int,
323+
pub constant: ::c_long,
324+
pub precision: ::c_long,
325+
pub tolerance: ::c_long,
326+
pub ppsfreq: ::c_long,
327+
pub jitter: ::c_long,
328+
pub shift: ::c_int,
329+
pub stabil: ::c_long,
330+
pub jitcnt: ::c_long,
331+
pub calcnt: ::c_long,
332+
pub errcnt: ::c_long,
333+
pub stbcnt: ::c_long,
334+
}
335+
336+
pub struct ntptimeval {
337+
pub time: ::timespec,
338+
pub maxerror: ::c_long,
339+
pub esterror: ::c_long,
340+
pub tai: ::c_long,
341+
pub time_state: ::c_int,
342+
}
343+
315344
}
316345

317346
s_no_extra_traits! {
@@ -426,34 +455,6 @@ s_no_extra_traits! {
426455
__unused1: *mut ::c_void, //actually a function pointer
427456
pub sigev_notify_attributes: *mut ::c_void
428457
}
429-
430-
pub struct timex {
431-
pub modes: ::c_uint,
432-
pub offset: ::c_long,
433-
pub freq: ::c_long,
434-
pub maxerror: ::c_long,
435-
pub esterror: ::c_long,
436-
pub status: ::c_int,
437-
pub constant: ::c_long,
438-
pub precision: ::c_long,
439-
pub tolerance: ::c_long,
440-
pub ppsfreq: ::c_long,
441-
pub jitter: ::c_long,
442-
pub shift: ::c_int,
443-
pub stabil: ::c_long,
444-
pub jitcnt: ::c_long,
445-
pub calcnt: ::c_long,
446-
pub errcnt: ::c_long,
447-
pub stbcnt: ::c_long,
448-
}
449-
450-
pub struct ntptimeval {
451-
pub time: ::timespec,
452-
pub maxerror: ::c_long,
453-
pub esterror: ::c_long,
454-
pub tai: ::c_long,
455-
pub time_state: ::c_int,
456-
}
457458
}
458459

459460
cfg_if! {

0 commit comments

Comments
 (0)