diff --git a/sysdeps/freebsd/ChangeLog b/sysdeps/freebsd/ChangeLog index d4157c1a..4fd3ab3a 100644 --- a/sysdeps/freebsd/ChangeLog +++ b/sysdeps/freebsd/ChangeLog @@ -1,3 +1,13 @@ +2006-04-04 Julio M. Merino Vidal + + * sysdeps/freebsd/proctime.c: + + Remove obsolete and non-functional code that breaks the build under + NetBSD. It was guarded by a conditional but could not compile + anyway because it referred to an undefined variable. + + Fixes bug #337234. + 2005-02-28 BenoƮt Dejean * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write): Forgot to add diff --git a/sysdeps/freebsd/proctime.c b/sysdeps/freebsd/proctime.c index c2f6a2ea..09e02336 100644 --- a/sysdeps/freebsd/proctime.c +++ b/sysdeps/freebsd/proctime.c @@ -138,11 +138,6 @@ glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf, #if (defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)) if (server->sysdeps.proc_time == 0) return; - -#ifndef __bsdi__ - sprintf (filename, "/proc/%d/mem", (int) pid); - if (stat (filename, &statb)) return; -#endif #endif /* Get the process information */