diff options
author | Martin Baulig <martin@home-of-linux.org> | 1999-03-18 09:27:44 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-03-18 09:27:44 +0000 |
commit | 38554dbcbe4c91fcd021b51735f385c968033927 (patch) | |
tree | f66e5e0e9e94b808aa973436c414014248f873e1 /sysdeps/freebsd/ppp.c | |
parent | fe98fde338ed0bed0bc652553ea998461d7d6399 (diff) | |
download | libgtop-38554dbcbe4c91fcd021b51735f385c968033927.tar.gz |
Don't use `sppp.pp_phase' if we don't HAVE_I4B_ACCT. This is an ugly hack
1999-03-18 Martin Baulig <martin@home-of-linux.org>
* ppp.c: Don't use `sppp.pp_phase' if we don't HAVE_I4B_ACCT.
This is an ugly hack until someone tells me which versions have
this field and which not.
Diffstat (limited to 'sysdeps/freebsd/ppp.c')
-rw-r--r-- | sysdeps/freebsd/ppp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/freebsd/ppp.c b/sysdeps/freebsd/ppp.c index 895a6bbc..093148a1 100644 --- a/sysdeps/freebsd/ppp.c +++ b/sysdeps/freebsd/ppp.c @@ -110,10 +110,15 @@ glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device) #ifdef HAVE_I4B_ACCT phase = data.sc_if_un.scu_sp.pp_phase; #else + /* FIXME: Which FreeBSD version have this field and + * which not. */ +#if 0 phase = data.pp_phase; #endif +#endif switch (phase) { +#ifdef HAVE_I4B_ACCT case PHASE_DEAD: case PHASE_TERMINATE: buf->state = GLIBTOP_PPP_STATE_HANGUP; @@ -122,6 +127,7 @@ glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device) case PHASE_NETWORK: buf->state = GLIBTOP_PPP_STATE_ONLINE; break; +#endif default: buf->state = GLIBTOP_PPP_STATE_UNKNOWN; break; |