mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 06:50:37 +08:00
BPF(9): Remove RTEMS-specifics
This commit is contained in:
@@ -2426,19 +2426,12 @@ bpf_hdrlen(struct bpf_d *d)
|
|||||||
static void
|
static void
|
||||||
bpf_bintime2ts(struct bintime *bt, struct bpf_ts *ts, int tstype)
|
bpf_bintime2ts(struct bintime *bt, struct bpf_ts *ts, int tstype)
|
||||||
{
|
{
|
||||||
#ifndef __rtems__
|
|
||||||
struct bintime bt2, boottimebin;
|
struct bintime bt2, boottimebin;
|
||||||
#else /* __rtems__ */
|
|
||||||
struct bintime bt2;
|
|
||||||
#endif /* __rtems__ */
|
|
||||||
struct timeval tsm;
|
struct timeval tsm;
|
||||||
struct timespec tsn;
|
struct timespec tsn;
|
||||||
|
|
||||||
if ((tstype & BPF_T_MONOTONIC) == 0) {
|
if ((tstype & BPF_T_MONOTONIC) == 0) {
|
||||||
bt2 = *bt;
|
bt2 = *bt;
|
||||||
#ifndef __rtems__
|
|
||||||
getboottimebin(&boottimebin);
|
|
||||||
#endif /* __rtems__ */
|
|
||||||
bintime_add(&bt2, &boottimebin);
|
bintime_add(&bt2, &boottimebin);
|
||||||
bt = &bt2;
|
bt = &bt2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user